我想要实现这样一个效果:
function f = function(){ console.log(1); } f.before(function(){ console.log(2); }) f(); //我想要这里输出为:2 1
请问before函数要怎么实现?
一只甜甜圈
相关分类