In this paper, the scene
When writing HTML using VS Code, the imported JS file needs to import modules across domains.
why
Use File protocol, need to use HTTP, Data, Chrome-Extension, Edge, HTTPS and other protocols, commonly speaking is the need to use the server to open a port.
The solution
Right click directly in VS Code and select Open with Live Server.
Read More:
- How to install IDM Extension in Chromium-based Microsoft Edge (Canary/Dev)
- Installing markdown viewer 3.9 plug-in for Chrome
- Chrome local file translation tool
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- How to Fix The Latest Version of chrome cannot install the IDM plug-in IDMGCExt.crx
- Using selenium server- standalone.jar Console error: unknown error: cannot get automation extension solution
- IntelliJ idea community community integrated Tomcat or jetty tutorial
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- ajp_read_header: ajp_ilink_receive failed
- Remote desktop 0x104 solution?
- solve java.net.ConnectException : Connection refused:connect report errors
- node url.parse()
- SQL 2005 remote connection error (provider: SQL network interface, error: 28 – the server does not support the requested protocol
- solve java.net.SocketException : Unrecognized Windows Sockets error: 0: JVM_ Bind
- Wireshark filtering HTTP packets
- Chrome browser network error: err_ CERT_ AUTHORITY_ INVALID
- How to download Google Chrome offline installation package from the official website
- How to Fix java.net.ConnectException: Connection refused: connect
- A Chrome extension to protect the privacy of personal favorites
- SSL appears when Firefox accesses HTTPS_ error_ weak_ server_ ephemeral_ Dh_ Key error