jsp结尾的文件出现 Uncaught TypeError: Cannot read properties of undefined (reading 'ajax')
时间: 2023-08-28 15:20:51 浏览: 162
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#Object‘的解决方法
这个报错信息提示了一个Uncaught TypeError: Cannot read properties of undefined (reading 'ajax')错误。根据引用的信息,这个错误通常发生在尝试读取未定义属性时。根据引用的信息,这个错误可能是因为在某个页面内绑定了window滚动事件,并且在该页面中使用了this.$refs.more来获取一个div对象。然而,当切换到其他页面时,window绑定的事件仍然存在,但是页面已经销毁,导致this.$refs.more找不到,从而引发了报错。另外,根据引用的信息,这个报错也可能与语言设置有关,如果默认浏览器语言设置为中文(简体),可能会出现此问题。解决方法可以尝试将默认浏览器语言设置为其他语言,或者检查代码中是否正确引用了ajax方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Uncaught TypeError: Cannot read properties of undefined (reading ‘getBoundingClientRect‘)](https://blog.csdn.net/m0_60316162/article/details/131644303)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Uncaught TypeError: Cannot read properties of undefined (reading ‘replace‘)](https://blog.csdn.net/weixin_38763607/article/details/128955247)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文