javascript,for循环和splice问题高手进
varlist=["a","b","c","d","e"];for(vari=0;i<list.length;i++){console.log(list.splice(i...
var list=["a","b","c","d","e"];
for(var i=0;i<list.length;i++){
console.log(list.splice(i--,1)); //这里i--什么意思? 求详解
} 展开
for(var i=0;i<list.length;i++){
console.log(list.splice(i--,1)); //这里i--什么意思? 求详解
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询