dexteryy / OzJS

A microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp

Home Page:http://ozjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

循环引用,不提示错误,也不运行

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的