摘要:
var arr = ['绵阳', 'aaa', '资阳', 55, '成都', 2, 'chengdu','abc'];var result = arr.sort(function(a, b){return (a + '').localeCompare(b + '')});conso... 阅读全文
摘要:
console.log(getWeekByDate('2017-05-05'));// ["2017-04-29", "2017-04-30", "2017-05-01", "2017-05-02", "2017-05-03", "2017-05-04", "2017-05-05"]... 阅读全文