循环引用,不提示错误,也不运行
LongEth opened this issue · comments
循环引用,不提示错误,也不运行:
a.js
define('a',function(require,exports,module){
var b = require('./b');
b.say()
exports.say = function(){
alert('hello a')
}
});
b.js
define('b', function(require, exports, module) {
var a = require('./a');
a.say('a')
exports.say = function(){
alert('hello b')
}
});
sea.html
<script> seajs.use('b') </script>sorry ,发错地方了,seajs的