摘要:
1.common.js export function formatTime(data){ var d = new Date(data); function doTime(d){ if(d<10){ d='0'+d; } return d; } var times=d.getFullYear() + 阅读全文
摘要:
npm install webpack-dev-server --save 阅读全文
摘要:
1.箭头函数的定时器this指向当前对象 var obj ={ name:"Tina", popup:function(){ setTimeout(()=>{ console.log("打印名字",this.name) },3000) }} obj.popup(); //打印名字 Tina 2.普通 阅读全文