jquery使用公共头部的方法

211 阅读1分钟

js

document.write("<script language=javascript src='../../static/jscss/jquery.js'></script>");
window.onload = function () {
    $("#head").load("../../component/head.html")
}

html

 <div id="head"></div>