uniapp获取软件的根路径(安卓)
·
getBootPath() {
var that = this;
let fullPath;
plus.io.requestFileSystem(plus.io.PUBLIC_DOCUMENTS, function (fs) {
let root = fs.root;
fullPath = root.fullPath;
})
console.log(fullPath)
},
plus.io 来请求文件系统的访问权限
plus.io.PUBLIC_DOCUMENTS 表示请求公共文档目录的文件系统
更多推荐
所有评论(0)