老的js 页面
$.post(‘{:U("getNowTimeFormat")}‘, function(data){
let json = JSON.parse(data);
let s = json.formatDate;
s = s.replace(/-/g,"/");
let date = new Date(s).getTime();
});
新的页面可以直接干
axios.get("{:U(‘getNowTimeFormat‘)}")
.then(response => {
let nowTime = new Date(response.data.formatDate).getTime()
})