问题描述js数组对象排序问题问题出现的环境背景及自己尝试过哪些方法js数组对象排序问题相关代码//请把代码文本粘贴到下方(请勿用图片代替代码)初始代码:letnewArr=[{"schedule":"已交付","0":"3005B00000041"},{"schedule":"未开工","0":"3005B00000308"},{"schedule":"建设中","0":"3005B00000037"},{"schedule":"建设中","0":"3005B00000283"},{"schedule":"未开工","0":"3005B00000304"}];你期待的结果是什么?实际看到的错误信息又是什么?目标结果:letresultArr=[{"schedule":"已交付","0":"3005B00000041"},{"schedule":"未开工","0":"3005B00000308"},{"schedule":"未开工","0":"3005B00000304"},{"schedule":"建设中","0":"3005B00000037"},{"schedule":"建设中","0":"3005B00000283"},]
慕丝7291255
慕姐8265434
相关分类