Skip to content

Instantly share code, notes, and snippets.

@luozhihua
Created January 23, 2014 09:47
Show Gist options
  • Save luozhihua/8575773 to your computer and use it in GitHub Desktop.
Save luozhihua/8575773 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://requirejs.org/docs/release/2.1.10/comments/require.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
(function(global){
var mod = function() {
alert(9);
};
if (typeof define !== 'undefinded') {
define(function(require, exports, module){
return mod;
});
} else {
global.mod = mod;
}
}(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment