如果遇到需要传递参数的情形,该如何处理?
回复 (3)
L
function() {
myFwithParams(a, b, c);
}
Y
process.nextTick(fn.bind(ctx, arg));
L
建议使用setImmediate,参考:http://www.yijiebuyi.com/blog/c96c2aa46fd0b91e75be22161cceeea1
参与回复
登录后即可参与回复。登录
如果遇到需要传递参数的情形,该如何处理?
function() {
myFwithParams(a, b, c);
}
process.nextTick(fn.bind(ctx, arg));
建议使用setImmediate,参考:http://www.yijiebuyi.com/blog/c96c2aa46fd0b91e75be22161cceeea1