cho*_*ovy 7 javascript requirejs node-webkit
我在使用node-webkit的简单示例中遇到以下错误:
Uncaught AssertionError: path must be a string
Run Code Online (Sandbox Code Playgroud)
的index.html
//base.js
require(["test"], function(test) {
test.init();
});
//test.js
define(function(){
window.c = window.console;
return {
init: function(){
c.log('test.init');
},
destroy: function(){
c.log('test.destroy');
}
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6507 次 |
| 最近记录: |