阅读背景:

TypeScript:为循环中元素数组中的每个元素分配一个事件

来源:互联网 

I have come up with the code below. The problem is that on change every element alerts the last iteration index. For example if there are 24 items on the elements array every single element on change will alert "Changed row 23" . I kind of see why it is happening but cant find away to get around it so that every element onchange will alert its index instead of the last. Any help will be appreciated. I have come up with the code below. The problem




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: