87,991
社区成员
发帖
与我相关
我的任务
分享
function r1() {
this.setapplytime_1 = function() {
console.log(1);
};
this.setapplytime_2 = function() {
console.log(2);
};
this.setapplytime_3 = function() {
console.log(3);
}
for(var ih = 1; ih < 4; ih++) {
try {
this['setapplytime_' + ih]();
} catch (herr2) {
console.log(herr2);
}
}
}
function r1(){
for (var ih=1;ih<4;ih++)
{
try{
this['setapplytime_'+ih]();
}catch(herr2){}
}
}