js模块
羽下佳人
爱好敲代码,敲代码
展开
-
js模块 - AMD/CMD
两者区别: http://www.cnblogs.com/dojo-lzz/p/4707725.htmlJavaSript模块规范 - AMD规范与CMD规范介绍 : http://blog.chinaunix.net/uid-26672038-id-4112229.htmlAMD规范 https://github.com/amdjs/amdjs-api/wiki/AMD原创 2017-04-11 11:14:32 · 224 阅读 · 0 评论 -
js模块
相关网址:http://www.ruanyifeng.com/blog/2012/10/asynchronous_module_definition.html目前,通行的Javascript模块规范共有两种:CommonJS和AMD。AMD是"Asynchronous Module Definition"的缩写,意思就是"异步模块定义"。它采用异步方式加载模块,模块的加原创 2017-04-11 10:54:10 · 210 阅读 · 0 评论 -
js 模块 - 前端模块化
相关网址:http://www.cnblogs.com/dolphinX/p/4381855.html一个模块是实现特定功能的文件,想实现神秘杨的功能就电泳什么样的模块即可了。基础模块1.封装 函数作为模块 function fun1(){.......} function fun2(){.......} 需要实现什么样的功能直接调用相关原创 2017-04-11 11:13:57 · 303 阅读 · 0 评论 -
seaJs
seajs官网:https://github.com/seajs/ seajs官方文档:http://seajs.org/docs/#doc 演示demo地址:http://seajs.github.io/examples/1.官方使用文档: http://seajs.org/docs/2.简易文档 : http:原创 2017-04-11 11:16:23 · 505 阅读 · 0 评论 -
js 闭包
script> function makeAdder(x) { return function(y) { return x + y; }; } var add5 = makeAdder(5); // x=5; add5 = function (y) {return x + y;} var add原创 2017-04-21 15:25:32 · 303 阅读 · 0 评论 -
银行卡号 格式,可删除
input type="text" value="2334 3445 3434 5678 789" size="25" onkeyup="accountStyle(this)" onkeydown="accountStyle(this)" name="account" id="account" />// 资金账号 格式function accountStyle (BankNo) {原创 2017-04-21 16:01:36 · 1830 阅读 · 0 评论 -
金额 数字小写 自动翻译成中文大写
tr> td rowspan="2" class="bggray line_h">金额br/>(人民币)td> td class="bggray_l" >小写td> td colspan="2"> input type="text" id="amount_in_digit" onkeyup="moneyInput(this)"/> td>tr>t原创 2017-04-26 10:55:29 · 1839 阅读 · 0 评论