As the name suggests, undefined methods are used, and most of them do not read the corresponding methods
First of all, according to the online statement, check whether jquery.js has been referenced many times, and it has not been checked
Then jquery.js is put at the front. After doing so, it still can’t be solved
Another way is to use required. JS to implement dependency loading, which I didn’t try
Finally, I put the ztree related code in the window. Load method and execute it after the page is loaded
Solved the problem
Similar Posts:
- Error in JS function referencing public page [How to Solve]
- ”Cannot read property ‘addEventListener’ of null“
- The Difference between $(document).ready, window.onload and $(window).load(function (){})
- Always report uncaught error:[$ injector:modulerr ]Solutions to errors
- [jQuery version] cannot read property ‘MSIE’ of undefined solution
- The Difference between Document.ready and Window.onload
- [Solved] jQuery Error: Uncaught ReferenceError: $ is not defined
- The Usage of v-clock
- On the error of cannot read property ‘xxx’ of null in JS
- Vue Error: Error in render: “TypeError: Cannot read properties of null (reading ‘xxx’)” found in