注意:这个方法需要有下面的安全规则:
Add cdvfile: scheme to Content-Security-Policy meta tag of the index page, e.g.:
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap:cdvfile:https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
添加上面这个,出现(404这个错误)。
window.resolveLocalFileSystemURL("cdvfile://localhost/forum/toolsdown/softs/j2re.exe", function (dirEntry) { 这个函数返回上面提到的错误5.