js根据数组里的对象属性排序 2020-08-14 本文已影响0人 黄黄黄大帅 // 升序 function mysort(array,property){ array.sort((a, b) => a[property] - b[property]) }