../plugins/cordova-plugin-file/www/FileWriter.js 中的字符“u0187”无效
我想将 cordova-plugin-file 添加到我的应用程序中,但是安装 cordova-plugin-file 后,当我启动应用程序时,我收到了这样的错误消息
!JavaScript ERROR: SyntaxError: Invalid character '\u0187' on line 2 for http://localhost:62500/plugins/cordova-plugin-file/www/FileWriter.js !JavaScript ERROR: Error: Module cordova-plugin-file.FileWriter does not exist. on line 1385 for http://localhost:62500/cordova.js
当我用 Eclipse 打开 FileWritter.js 时,我找不到该字符,../plugins/cordova-plugin-file/www/FileWriter.js 中的无效字符“u0187”
最佳答案
红帽 Jboss-8.0.1 的 cordovasim 存在问题
安装插件后,在 cordovasim 中运行应用程序时,文件和文件传输插件 javascript 文件会附加一些特殊字符。 因此,应用程序会中断。
使用命令行界面安装插件并生成APK 在手机中安装APK。它将按预期工作。
*
Note:Red Hat Jboss-8 version having few issues with Ionic App development(Hybrid App)
*
关于javascript - ../plugins/cordova-plugin-file/www/FileWriter.js 中的无效字符“u0187”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31310247/