小程序支持javascript里的replace吗Cannot read pro
Cannot read property 'replace' of undefined;at App getGoodsWeek function
getGoodsWeek:function(){
let date = ‘2018-12-13 16:00’;
let getGoodsDate = new Date(date.replace(/-/g, “/”));
};
为什么会报错,小程序不支持javascript里的replace吗?
Cannot read property ‘replace’ of undefined;at App getGoodsWeek function