新建commentJs.js文件,把需要引用的js用以下方法放入
document.write('<script src="static/js/student/student.js" type="text/javascript"></script>');
document.write('<script src="static/js/jquery-1.8.2.min.js" type="text/javascript"></script>');
document.write('<script src="static/layui/layui.js" type="text/javascript"></script>');
document.write('<script src="static/js/student/student.js" type="text/javascript"></script>');
调用是只需要调用commonJs.js一个就可以了
css文件引用:
@import "../layui/css/layui.css";
转载自 [button href="https://blog.csdn.net/whz199511/article/details/85060313"]这[/button]