在使用jasmine进行测试时,我遇到了以下错误。
TypeError: moment().tz不是一个函数
我要测试的代码是:
let myDate = moment().tz(undefined, vm.timeZone).format('YYYY-MM-DD');
用户名或电子邮箱地址
密码