Javascript module not working in browser?

前端 未结 8 1897
半阙折子戏
半阙折子戏 2020-12-10 11:35

Alright, I have looked on this site and have found several different answers, none of which have worked for me. Basically had a js file that had many functions in it along

8条回答
  •  没有蜡笔的小新
    2020-12-10 12:09

    Using JS modules in the browser On the web, you can tell browsers to treat a element as a module by setting the type attribute to module.

    
    
    

    More on https://developers.google.com/web/fundamentals/primers/modules

提交回复
热议问题