Date.prototype.toJSON不允许重写
问题: 使用plugins后, 在手机上预览小程序时,报错:
[non-writer] write Date.prototype.toJSON is not allowed when using plugins at app.json
我的确重写了Date.ptototype.toJSON方法, 之前不使用plugins是正常的。这种情况应该怎么处理(想使用plugins时,并重写Date.prototype.toJSON方法)?
问题: 使用plugins后, 在手机上预览小程序时,报错:
[non-writer] write Date.prototype.toJSON is not allowed when using plugins at app.json
我的确重写了Date.ptototype.toJSON方法, 之前不使用plugins是正常的。这种情况应该怎么处理(想使用plugins时,并重写Date.prototype.toJSON方法)?