for (j = td_counter; j < rows; j++) { td = document.createElement("td"); td.innerHTML = ' '; td.onclick = $.proxy(this.onclick, this, i); tr.appendChild(td); }
jQuery.proxy可以往函数里传参
最新推荐文章于 2024-01-31 10:13:51 发布
for (j = td_counter; j < rows; j++) { td = document.createElement("td"); td.innerHTML = ' '; td.onclick = $.proxy(this.onclick, this, i); tr.appendChild(td); }