We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目录结构如下 其中tweet.js文件中内容为: define(function (require, exports) { var cookie = require("cookie"); //cookie key的配置在下面的router.js文件见下图 return { init: function () { $("#txtUser").val("user" + new Date().getTime()).css("width", "600px"); $("#txtPwd").val("pwd" + new Date().getTime()).css("width", "600px"); $.cookie("user", "jackie"); } }; });
router.js的路由配置 然后当我在dos命令行中使用grunt build-script打包的过程中出现了如下错误:
我的目的就是想使用seajs的形式来引用其它.js 文件,如果在tweet.js中不写 var cookie = require("cookie");是没有任何错误,请问改如何改进。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目录结构如下
其中tweet.js文件中内容为:
define(function (require, exports) {
var cookie = require("cookie"); //cookie key的配置在下面的router.js文件见下图
return {
init: function () {
$("#txtUser").val("user" + new Date().getTime()).css("width", "600px");
$("#txtPwd").val("pwd" + new Date().getTime()).css("width", "600px");
$.cookie("user", "jackie");
}
};
});
router.js的路由配置
然后当我在dos命令行中使用grunt build-script打包的过程中出现了如下错误:
我的目的就是想使用seajs的形式来引用其它.js 文件,如果在tweet.js中不写 var cookie = require("cookie");是没有任何错误,请问改如何改进。
The text was updated successfully, but these errors were encountered: