月份和日期var year = now.getFullYear();var month = now.getMonth() + 1;var day = now.getDate();that.day = day;// 将年份、月份和日期拼接成字符串yyyy-mm-dd格式var dateStr = year + '年' + month + '月' + day + '日';that.time = dateStr;const timestamp = Date.now();const...
uni-app按数组中拼音首字母及创建时间(降序)排序 创建一个常量:pingyinConst.js exportconstpinyin ={'a':'\u554a\u963f\u9515','ai':'\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d...