I looked at it again. Example of application of module parameters in extension seajs modules definition very good! Try it yourself!
http://limu.iteye.com/blog/1136712
Https://github.com/seajs/seajs/issues/67
In order to be able to preload the public part module! Use the Preload module function provided by Sea.js!
After installing the official Project tool SPM, the direct SPM Install-g Seajs-preload
<! DOCTYPE html>
Common modules section, imitating the HTML method of Jqery
Define (function (Require, exports, module) {var MP = MODULE.CONSTRUCTOR.PROTOTYPE;MP.MJQ = function () {var elem; (function (args) {if (typeof args[0] = = = ' String ') {Elem = document.getElementById (Args[0]);}}) (arguments); var mjquery = (function () {return elem;}) (); mjquery.html = function () {if (typeof Elem = = ' object ' && typeof arguments[0]! = ' undefined ') {elem.innerhtml = Arguments[0];} else {return elem.innerhtml;}} return mjquery;};});
Called in other modules
Define (function (Require, exports, module) {var $ = Module.mjq;console.log ($ ("block"). html ()); $ ("block"). HTML ("Halo") ;});
Seajs extending public methods through Module.constructor.prototype