<script src="md.js"></script>
<script>
//define a module
define('sayHi', function(require, exports, module){
//export a function
module.exports = function(msg){
console.log('hi, %s', msg);
};
});
</script>
<script>
define(function(require){
//require module
var hi = require('sayHi');
hi('Jerrold'); // hi, Jerrold
});
</script>
-
Notifications
You must be signed in to change notification settings - Fork 0
dim-team/md.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
md.js
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published