Skip to content

Instantly share code, notes, and snippets.

@lotosbin
Created December 6, 2013 09:14
Show Gist options
  • Select an option

  • Save lotosbin/7820846 to your computer and use it in GitHub Desktop.

Select an option

Save lotosbin/7820846 to your computer and use it in GitHub Desktop.
javascript:html:seajs
<!DOCTYPE HTML>
<html>
<head>
<title></title>
</head>
<body>
<script>
// seajs 的简单配置
seajs.config({
base: "./sea-modules/",
alias: {
"jquery": "jquery/jquery/1.10.1/jquery.js"
}
})
// 加载入口模块
seajs.use("./static/hello/src/main")
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment