vs code飄黃問題:
setting里關(guān)掉eslint的enable
火狐瀏覽器兼容Date()問題:兩種解決辦法?
(1)https://blog.csdn.net/xuxu120/article/details/53842708
(2)
formatDate(data) {
? ? ? ? ? ? let y = Math.floor(data.split('-')[0]);
? ? ? ? ? ? let m = Math.floor(data.split('-')[1]);
? ? ? ? ? ? let d = Math.floor(
? ? ? ? ? ? ? ? data
? ? ? ? ? ? ? ? ? ? .split('-')[2]
? ? ? ? ? ? ? ? ? ? .split(' ')[0]
? ? ? ? ? ? ? ? );
? ? ? ? ? ? let H = Math.floor(data.split('-')[2].split(' ')[1].split(':')[0]);
? ? ? ? ? ? let M = Math.floor(data.split('-')[2].split(' ')[1].split(':')[1]);
? ? ? ? ? ? let oDate = new Date();
? ? ? ? ? ? oDate.setFullYear(y);
? ? ? ? ? ? oDate.setMonth(m - 1);
? ? ? ? ? ? oDate.setDate(d);
? ? ? ? ? ? oDate.setHours(H);
? ? ? ? ? ? oDate.setMinutes(M);
? ? ? ? ? ? oDate.setSeconds(0);
? ? ? ? ? ? return parseInt(oDate.getTime()/1000)
? ? ? ? }
ivew的table組件里加超鏈接(跳轉(zhuǎn)&不跳轉(zhuǎn)):render函數(shù)
ivew的packDate組件禁選日期
接口跨域,后端聯(lián)調(diào)