怎么理解foreach(a as b)?

foreach(a as b){

}

victory_jack
浏览 1699回答 3
3回答

JustWannaHugU

a 是数组或对象b是数组里的每一个值,你还可以这样foreach(a as k => b){.....}这样k就是键值,b是值
打开App,查看更多内容
随时随地看视频慕课网APP