ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

fastadmin 如何引入自己的js

2026/8/9 5:14:56 拓冰建站 浏览量
fastadmin 如何引入自己的js

在需要的界面中:如何实例说明:

 中<script>

function zhuruJs(url) {

let temp = document.createElement( 'script ');

temp.setAttribute( 'type', 'text/javascript" );temp.src = urL;

document.head . appendChild(temp);

zhuruJs(location.origin+ ' /assets/js/ceshi.js ')

</script>

注意:zhuruJs 这个函数的中路径是 你自己写的js 中绝对路径