标签:des io ar for sp on cti bs ad
var add_the_handlers = function (nodes) {
var helper= function (i) {
return function (e) {
alert(i);
};
};
var i;
for (i = 0; i < nodes.length; i += 1) {
nodes[i].onclick =helper(i);
}
};
标签:des io ar for sp on cti bs ad
原文地址:http://www.cnblogs.com/dingyuanxin/p/4067128.html