要不直接写:
contentPane.appendReportRC(3, "A8");
--------------或者------------------------------
var i = 1;
var timer= setInterval(function(){
console.log(i);
contentPane.appendReportRC(1, "A8");
i++;
if(i > 3){
clearInterval(timer);
}
},1);
-----------或者-------------------------
----------不太建议用这个----------
for(var i = 1; i < 4; i++){
setTimeout(function(){
console.log(i);
contentPane.appendReportRC(1, "A8");
}, 40 * i);
}