Cannotreadproperty'firstChild'ofnull
When debugging the page, there was such an error. The search found that this error occurred before the page was loaded when JS was loaded. The solution is very simple. Put this section of JS at the bottom of the page, and then load this section of JS when the page is loaded. Make a brief note
Success comes from diligence
Similar Posts:
- Error in JS function referencing public page [How to Solve]
- ”Cannot read property ‘addEventListener’ of null“
- Debugging using Windbg : Symbols loading
- Pyqt5: How to solve the uncaught referenceerror when Python uses qwebengineview
- SQL0668N Operation not allowed for reason code “3” on table “TEST”. SQLSTAT…
- The Difference between $(document).ready, window.onload and $(window).load(function (){})
- Solve the problem of “java.lang.UnsatisfiedLinkError: Native Library .dll already loaded in another classloader”
- [How to Solve] Cannot set property ‘onclick’ of null
- The Usage of v-clock
- SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.