Uncaught TypeError: Cannot read property ‘events‘ of undefined
生活随笔
收集整理的這篇文章主要介紹了
Uncaught TypeError: Cannot read property ‘events‘ of undefined
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用谷歌調試頁面時,出現如下錯誤提示:
Uncaught TypeError: Cannot read property ‘events’ of undefined
場景是這樣的,我頁面中有幾個按鈕,當點擊這幾個按鈕就會出現如下提示,原本這個按鈕的效果應該是出現彈窗的,但是卻一直報這樣的錯,因為我是搞后端的,以為這個問題頭疼了半天,怎么都找不到原因,最終一邊邊測試,終于發現的錯誤的地方,所以記錄分享下。
下面是我彈窗內文字框的代碼,原因就在其中,就是因為在第15行多打了一個逗號,報錯原因確實可笑,還是不夠細心,又是一次教訓。
items: [{defaults: {anchor: '90%'},items: [_txtNumber, _txtArea, _txtAuthorName]}, {defaults: {anchor: '90%'},items: [_txtBoxName, _txtPort, _txtCreateTime]}, {defaults: {anchor: '90%'},items: [_txtBoxIP, , _txtOperateTime, _txtOperatorName]}, {defaults: {anchor: '90%'},items: [_txtUUID, _txtOperateCode, _txtPinYinCode, _txtOperatorKey, _txtAuthorKey, _txtStatus]}]總結
以上是生活随笔為你收集整理的Uncaught TypeError: Cannot read property ‘events‘ of undefined的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在java中删除某个文件
- 下一篇: IDEA创建SpringBoot项目报错