Skip to content

Instantly share code, notes, and snippets.

@sofish
Created July 2, 2012 02:50
Show Gist options
  • Save sofish/3030688 to your computer and use it in GitHub Desktop.
Save sofish/3030688 to your computer and use it in GitHub Desktop.
seaj.s demo page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Loader</title>
<script src="./loader/sea.js"></script>
</head>
<body>
<script>
seajs.config({
base: 'http://test.com/test/loader/loader/module/',
alias: {
jquery: 'jquery-1.7.2.min.js'
}
});
seajs.use('jquery', function($){
console.log($)
// Object {}, jquery 有加载但没解析?
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment