reference multiple js files in a single line in a html file

前端 未结 6 2055
时光说笑
时光说笑 2021-01-19 07:04

Is there an easy way to reference all js files in an HTML file rather than referencing it one by one?

Instead of this -



        
6条回答
  •  一向
    一向 (楼主)
    2021-01-19 07:36

    You can try and combine your javascript files or plugins into one:

    
    

    You'll have to do it manually though. Another option would be to write a server-side script to combine and minify all your javascript files.

提交回复
热议问题