摘要:
创建一个a标签下载: // 模板下载 templateDown() { const a = document.createElement('a') const evt = document.createEvent('MouseEvents') a.download = '导入模板' a.href = 阅读全文
摘要:
代码: var birthday=new Date("1989-06-25".replace(/-/g, "\/")); var d=new Date(); var age = d.getFullYear()-birthday.getFullYear()-((d.getMonth()<birthda 阅读全文