js for in可以遍历对象吗

2025-05-19 00:34:11
推荐回答(1个)
回答1:

可以遍历对象的,比如
for p in persons{
alert(p.name)
}