摘要: var arr = ['绵阳', 'aaa', '资阳', 55, '成都', 2, 'chengdu','abc'];var result = arr.sort(function(a, b){return (a + '').localeCompare(b + '')});conso... 阅读全文
posted @ 2017-05-26 16:58 ning0_o 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 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"]... 阅读全文
posted @ 2017-05-26 14:49 ning0_o 阅读(276) 评论(0) 推荐(0) 编辑