js 在一个JS文件中引用另一个JS文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>js add js</title>
</head>
<body>
<script>
// document.write("<script src='/js/js.js'><\/script>");
var new_element = document.createElement("script");
new_element.setAttribute("type", "text/javascript");
new_element.setAttribute("src", "/layuiadmin/lib/qs.min.js");
document.head.appendChild(new_element);
</script>
</body>
</html>
Lee2