天天看点

San+Moment: Uncaught TypeError: Cannot read property 'call' of undefined

Uncaught TypeError: Cannot read property 'call' of undefined
    at NumberListPartial.<anonymous> (moment.min.js:1)
    at re.fire (moment.min.js:1)
    at re.set (moment.min.js:1)
    at moment.min.js:1
    at n (moment.min.js:1)
    at moment.min.js:1
    at n (moment.min.js:1)
    at t.Ie._updateBindxOwner (moment.min.js:1)
    at t.Ie._update (moment.min.js:1)
    at Je (moment.min.js:1)
           

这报错信息真的看不太懂,堆栈信息有和没有没啥区别。

Solution

只是后来根据感觉,发现了这个问题出现的原因:

在watch的时候应该传入函数名,而不是函数调用—