function testfori() {
for(i = 0; i < 10; ++i) {
}
}
function showi() {
for(i = 0; i < 10; ++i) {
testfori();
alert(i);
}
}
showi();
结果是。。。
js的全局变量
最新推荐文章于 2024-01-18 08:50:29 发布
function testfori() {
for(i = 0; i < 10; ++i) {
}
}
function showi() {
for(i = 0; i < 10; ++i) {
testfori();
alert(i);
}
}
showi();
结果是。。。