在使用 jQuery 将函数分配给 IE 7 中按钮的单击事件时,我遇到了问题。类似下面的东西在 Opera 中可以正常工作,但在 IE 中会产生无限循环:
function updateIndputFields(index, id) {
$("#reloadBtn").click(function(){ updateIndputFields(index, id) });
}
据我了解,在这种情况下,无限循环不会是预期的行为。但我是 jQuery 的新手,所以也许我错过了一些东西。无论如何,我应该怎么做才能在IE中将reloadBtn按钮的点击事件设置为'updateIndputFields(index,id)'?