02 2020 档案
摘要:1、背景图片 在main.js写 Vue.prototype.drawAndShareImage = async (width, height, url, text, callback) => { var canvas = document.createElement('canvas') canva
阅读全文
摘要:在main.js写 // eslint-disable-next-line no-extend-nativeArray.prototype.indexOf = function (val) { for (let i = 0; i < this.length; i++) { if (this[i] v
阅读全文
摘要:1、时间格式化js validate.js export default { format (fmt) { let o = { 'y+': this.getFullYear(), // 年 'M+': this.getMonth() + 1, // 月份 'd+': this.getDate(),
阅读全文
摘要:let arr = [4,3,5,2,1]foi (let i = 0; i <arr.length - 1; i++) { for (let j = 0; j < arr.length - 1 - i; j++) { if (arr[j] < arr[j + 1]) { let swap = ar
阅读全文