单项选择题

for(leti=0;i<3;i++){setTimeout(function(){console.log(i);},1000*i);}这段代码输出的结果是()。

A.0,1,2
B.3,3,3
C.0,0,0
D.以上结果都不对