- js读取静态json文件;
axios.get(url)
.then(res=>{
console.log(res.data);
})
.catch(err=>{
console.log(err);
})
2.element日期选择组件
pickerOptions0: {
disabledDate(time) {
//8.64e7
return time.getTime() < Date.now() - 8.64e7; //只能选择今天及今天之后
//return time.getTime() > Date.now() - 8.64e7; //只能选择今天之前,连今天都不能选
//8.64e6
//return time.getTime() < Date.now() - 8.64e6; //只能选择今天之后,连今天都不能选
//return time.getTime() > Date.now() - 8.64e6; //只能选择今天及今天之前
}
}
3.逆波兰公式: