摘要: 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) 编辑