找了好多,不是很理想有什么代碼也能讓靜態(tài)頁來讀取一個文件嗎?
2 回答

陪伴而非守候
TA貢獻(xiàn)1757條經(jīng)驗 獲得超8個贊
function include(url)
{
$.get(url,function(data){document.write(data);})
}
<script>include('top.html')</script>
前提引入jquery
- 2 回答
- 0 關(guān)注
- 304 瀏覽
添加回答
舉報
0/150
提交
取消