var run = function(){ //is run } var aopBefore = function(){ //aopBefore } var tmpFn=run; run = function(){ aopBefore(); tmpFn(); }
相关文章
- 01-14JS实现前置和后置AOP
- 01-14js实现AOP,面向切面编程
- 01-14js aop 拦载实现
- 01-14js实现AOP,面向切面编程
2022-01-14 04:30:18
var run = function(){ //is run } var aopBefore = function(){ //aopBefore } var tmpFn=run; run = function(){ aopBefore(); tmpFn(); }