上一页 1 2 3 4 5 6 7 ··· 26 下一页
摘要: https://blog.csdn.net/fageweiketang/article/details/82833193 阅读全文
posted @ 2020-06-21 17:42 TTtttt5 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2013/09/finite-state_machine_for_javascript.html 阅读全文
posted @ 2020-06-20 19:52 TTtttt5 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Function.prototype.before = function( beforefn ){ var __self = this; // 保存原函数的引用 return function(){ // 返回包含了原函数和新函数的"代理"函数 beforefn.apply( this, argum 阅读全文
posted @ 2020-06-20 11:53 TTtttt5 阅读(150) 评论(0) 推荐(0) 编辑
摘要: <button id="button">按我</button> <script> var MacroCommand = function () { return { commandsList: [], add: function (command) { console.log(command); t 阅读全文
posted @ 2020-06-19 11:21 TTtttt5 阅读(227) 评论(0) 推荐(0) 编辑
摘要: var button1 = document.getElementById("button1"); var button2 = document.getElementById("button2"); var button3 = document.getElementById("button3"); 阅读全文
posted @ 2020-06-19 09:44 TTtttt5 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-19 00:14 TTtttt5 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 实战经常用的 先创建一个用于求乘积的函数: var mult = function(){ console.log( '开始计算乘积' ); var a = 1; for ( var i = 0, l = arguments.length; i < l; i++ ){ a = a * argument 阅读全文
posted @ 2020-06-18 22:27 TTtttt5 阅读(272) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000017721211 // 在这里写 var strategies = { isNonEmpty(value, errorMsg) { if (value "") { return errorMsg; } }, minLength(v 阅读全文
posted @ 2020-06-18 18:33 TTtttt5 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-18 09:18 TTtttt5 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-18 07:00 TTtttt5 阅读(75) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 26 下一页