简体   繁体   English

Cordova插件文件

[英]Cordova plugin file

I am developing Cordova app for windows 8.1 platform as my target. 我正在为Windows 8.1平台开发Cordova应用程序。 I am using cordova-plugin-file plugin, and my clobber cordova.file is set as undefined. 我正在使用cordova-plugin-file插件,而我的clobber cordova.file设置为未定义。 However I can get the plugin when I call require: 但是,当我致电require时,我可以获得插件:

var p = cordova.require("cordova-plugin-file.FileProxy"); var p = cordova.require(“ cordova-plugin-file.FileProxy”); p.requestAllPaths(function(data){ console.log(data);}); p.requestAllPaths(function(data){console.log(data);});

Something overrides the object? 有东西覆盖对象吗? Any ideas? 有任何想法吗?

Apparently, this is a known bug. 显然,这是一个已知的错误。 That's what I got from ASFs JIRA on my bug report: https://issues.apache.org/jira/browse/CB-9986 这就是我从ASFs JIRA的错误报告中获得的信息: https ://issues.apache.org/jira/browse/CB-9986

  • Also I've changed window.file to cordova.file at the question. 我也将问题的window.file更改为cordova.file。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM