<img src="./img/66d587b39da9a/b/l1/1/l1_b_1_1.jpg" alt="" />
html中这个可以获取到图片但图片的绝对路径获取存在问题,并且相同的代码基座中运行是正常的
plus.io.resolveLocalFileSystemURL(
// "./" + pathimg,
// "file://./img/66d587b39da9a/",
// "/img/66d587b39da9a/",
// "/assets/apps/H5069B811/www/img/66d587b39da9a/",
// "./assets/apps/H5069B811/www/img/66d587b39da9a/",
// "./apps/H5069B811/www/img/66d587b39da9a/",
"/apps/H5069B811/www/img/66d587b39da9a/",
function (entry) {
// console.log(entry);
// $.each(entry, function (index, item) {
// console.log(index, item);
// });
pathimg = entry.fullPath;
// fullPath
alert(pathimg);
console.log(pathimg);
quanjing(pathimg);
},
function (params) {
$.each(params, function (key, vo) {
alert(key + "=>" + JSON.stringify(vo));
});
}
);
部分代码
普通人6
- 发布:2024-09-07 16:43
- 更新:2024-09-07 16:43
- 阅读:119
0 个回复