报错如下: 错误代码如下: 正确修改:在函数中引用变量需要this指向。 console.log(dateValue) 修改为: console.log(this.data.dateValue), 扩展:关于 js 中的this。 this 一共有六种不同的值: 普通函数调用,this为全局对象或是 Read More
posted @ 2019-08-09 10:32 milaliu99 Views(1039) Comments(0) Diggs(0)