标签:body art nbsp 取值 bsp leak text his find
var thisNumType=‘num‘; // 全年合计列 for(var i=0;i<20;i++){ $("#leakYearTbl tbody tr:eq("+i+")").find("td:eq(14)").text(eval(num+i)) }
1 var num1=100
var numType=num;
2.使用eval 可以获取值
alert(
eval(numType+i)
)
标签:body art nbsp 取值 bsp leak text his find
原文地址:http://www.cnblogs.com/lgjc/p/6183870.html