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

前端 未结 6 2053
时光说笑
时光说笑 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:54

    You can give Require.js a go. Require.js is the only JavaScript-file that is loaded through the script-tag. When you go out of development you can use Require.js's r.js to minify and concat everything into one file.

提交回复
热议问题