我正在尝试加载我使用Backbone构建的Web应用程序,它会提取本地存储的JSON和HTML模板文件.我想知道Chrome打包应用程序是否可以通过使用某种'get'/ ajax请求加载这些文件?
目前我正在接受这个......
OPTIONS chrome-extension://fibpcbellfjkmapljkjdlpgencmekhco/templates/templates.html Cannot make any requests from null. jquery.min.js:2
XMLHttpRequest cannot load chrome-extension://fibpcbellfjkmapljkjdlpgencmekhco/templates/templates.html. Cannot make any requests from null.
Run Code Online (Sandbox Code Playgroud)
我找不到任何关于如何做到这一点的真实信息,所以任何帮助都会非常感谢!
我正在使用NWJS开发桌面应用程序,我需要获取.exe文件的文件属性.
我已经尝试使用npm属性模块https://github.com/gagle/node-properties,但我得到一个空的Object.
properties.parse('./unzipped/File.exe', { path: true }, function (err, obj) {
if (err) {
console.log(err);
}
console.log(obj);
});
Run Code Online (Sandbox Code Playgroud)
我需要获取"文件版本"属性:

我也试过使用fs.stats而没有运气.有任何想法吗?