ecjia.hook.add_action('test', function(){console.log('test111111');})
ecjia.hook.add_action('test', function(){console.log('test22222');})
ecjia.hook.add_action('test', function(){console.log('test33333');})
ecjia.hook.add_action('test', function(){console.log('test4444');})
ecjia.hook.do_action('test’);
输出:
VM41135:1 test111111
VM41151:1 test22222
VM41165:1 test33333
VM41181:1 test4444
网友评论