js for循环中传入动态参数 $(img).bind("click",function(){ little_go(this);}); (function(str){ a.onclick=function(){ tmp(str); } })(i);