js中对象数组按对象属性排序

var arr = [{ data: 21, weather:'晴' }, { data: 111, weather:'小雨' }, { data: 32, weather:'大雨' }, {
相关文章
相关标签/搜索