摘要: 1.在searchResult页面存取 // 将搜索关键字设置到缓存中saveHisByLocal(keyword) { // 判断搜索记录是否存在,如果存在,不需要存 this.searchShopsHis.forEach((item, index) => { if(item == keyword 阅读全文
posted @ 2020-07-20 09:52 栗子米 阅读(591) 评论(0) 推荐(0)
摘要: 1.在methods中写排序方法 sort(type) { this.List = this.List.sort(this.compare(type));},// 排序公共方法compare(property){ return function(a,b){ let value1 = a[proper 阅读全文
posted @ 2020-07-20 09:37 栗子米 阅读(1001) 评论(0) 推荐(0)