向setTimeout函数传递带参函数的方法 利用闭包 setTimeout(func1(arg), 5000); function func1(arg){ return function(){ solve(arg); } }