JavaScript for in循环,for of循环
摘要:
一、JavaScript for/in 语句循环遍历对象的属性 var person={fname:"Bill",lname:"Gates",age:56}; var txt = ""; // x 为属性名 for (x in person) { txt = txt + person[x]; } c 阅读全文
posted @ 2022-04-17 23:59 jf009 阅读(61) 评论(0) 推荐(0) 编辑