前端为什么有时候可以用foreach 但有时侯不能用

3种情况
1.不能循环对象,要用map或者for
2.回显数组时候,也不合适,消耗资源
3.需要手动停止的时候不合适

posted @ 2022-08-17 08:45  凉忆~  阅读(82)  评论(0)    收藏  举报