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可以往函数里传参
最新推荐文章于 2022-07-25 17:44:22 发布
for (j = td_counter; j < rows; j++) { td = document.createElement("td"); td.innerHTML = ' '; td.onclick = $.proxy(this.onclick, this, i); tr.appendChild(td); }