摘要:
在 utils 下创建 .wxs 文件,里面封装方法并导出 var week = function (year,month,day) { var flag = getDate(year,month - 1,day).getDay() switch(flag){ case 0: return '周日' 阅读全文
摘要:
// 字节换算 a 字节 b 小数 formatBytes(a, b) { if (a == 0) return '0 Bytes' var c = 1024 var d = b || 2 var e = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', ' 阅读全文