var run = function(){ //is run } var aopBefore = function(){ //aopBefore } var tmpFn=run; run = function(){ aopBefore(); tmpFn(); }
js aop 拦载实现,布布扣,bubuko.com
js aop 拦载实现
原文:http://www.cnblogs.com/solq/p/3575467.html