y***@aliyun.com
y***@aliyun.com
  • 发布:2017-03-15 17:51
  • 更新:2017-03-28 15:46
  • 阅读:4709

plus.io.convertLocalFileSystemURL的返回值

分类:Native.js

var path =plus.io.convertLocalFileSystemURL("_www/Views/");
我的手机返回的是:/apps/H5253EFA2/www/Views
模拟器是全路径,file://mnt/...../www/Views
这是为什么

2017-03-15 17:51 负责人:无 分享
已邀请:
y***@aliyun.com

y***@aliyun.com (作者)

将manifest.json文件中的runmode值设置成liberate就行了

"runmode": "liberate",/应用的首次启动运行模式,可取liberate或normal,liberate模式在第一次启动时将解压应用资源(Android平台File API才可正常访问_www目录)/

y***@aliyun.com

y***@aliyun.com (作者)

找了一上午都没找到原因

大馒头小咸菜

大馒头小咸菜

靠谱!

该问题目前已经被锁定, 无法添加新回复