<div id="top"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$("#top").load( "top.html");
</script>
- Apr 02 Mon 2018 16:47
-
[Jquery]讓html檔也能使用include方法
", "articleBody": "
...", "image": [ { "@type": "ImageObject", "url": "https://s3.1px.tw/blog/common/avatar/blog_cover_light.jpg" } ], "author": { "@id": "https://stockwfj3.pixnet.net#person" }, "publisher": { "@type": "Organization", "name": "PIXNET", "url": "https://www.pixnet.net", "logo": { "@type": "ImageObject", "url": "https://static.1px.tw/pixnet-next/_next/static/media/pixnet-logo.692e9b3e.svg" } }, "datePublished": "2018-04-02T16:47:22+08:00", "dateModified": "2018-04-02T16:49:03+08:00", "inLanguage": "zh-TW", "articleSection": "JQuery", "keywords": [], "isPartOf": { "@type": "Blog", "@id": "https://stockwfj3.pixnet.net/blog#blog" } }<div id="top"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$("#top").load( "top.html");
</script>
請先 登入 以發表留言。