我用nodejs编写一个提交表单的页面,结果每次点击提交表单的按钮,就会有这个错误。我看console里也不能得出错误类型和位置,所以到这里来求助一下。 console的错误提示如下
TypeError: Object #<Object> has no method 'apply'
at Query.Sequence.end (D:\codehome\Github\Remote-Food-Order-System-by-nodejs\node_modules\mysql\lib\protocol\sequences\Sequence.js:66:24)
at Query.ErrorPacket (D:\codehome\Github\Remote-Food-Order-System-by-nodejs\node_modules\mysql\lib\protocol\sequences\Query.js:93:8)
at Protocol._parsePacket (D:\codehome\Github\Remote-Food-Order-System-by-nodejs\node_modules\mysql\lib\protocol\Protocol.js:172:24)
at Parser.write (D:\codehome\Github\Remote-Food-Order-System-by-nodejs\node_modules\mysql\lib\protocol\Parser.js:62:12)
at Protocol.write (D:\codehome\Github\Remote-Food-Order-System-by-nodejs\node_modules\mysql\lib\protocol\Protocol.js:37:16)
at Socket.ondata (stream.js:51:26)
at Socket.EventEmitter.emit (events.js:117:20)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)