Skip to content

Instantly share code, notes, and snippets.

View yanyu0517's full-sized avatar
🎯
Focusing

YY yanyu0517

🎯
Focusing
View GitHub Profile
<html>
<head>
<script type="text/javascript" src="sea.js"></script>
<script type="text/javascript" src="seajsconfig.js"></script>
</head>
<body>
<script type="text/javascript">
seajs.use(['moduleA'], function(moduleA){
console.log(moduleA)
})
define('moduleB', [], function(require, exports, module){
exports.B = 1
})
define('moduleA',function(require, exports, module){
require('moduleB');
exports.A = 1
})