在seajs中使用require加载静态文件的问题

注意,在seajs中使用require加载静态文件时,必须使用常量,不能用变量。如果一定要用变量,请使用require.async

var html = require("view/sys/design/toolbar.html");//引号中一定只能是常量,不能使用变量

  

posted @ 2016-06-22 15:48  sonicit  阅读(1230)  评论(0编辑  收藏  举报