• 公共部分调用


    1、  .load 方法

    IIS下显示

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

    <div id="footer"></div>

    <script>
    $(function(){
      $("#head").load('public/head.html');
      $("#footer").load('public/footer.html');
    })
    </script>

     ( .load 方法会和 SuperSlide 插件冲突,更适用于静态页面)

    2、  object 方法

    <object type="text/x-scriptlet" data="public/head.html" width=100% height=40></object>

     3、  include方法

    <!--#include file="public/head.html"-->

    该方法需把页面后缀改为 .shtml

  • 相关阅读:
    SEO搜索引擎
    SEO
    编程的智慧
    ES6编程规范
    面试题集
    motto
    motto
    JS
    motto
    Linux
  • 原文地址:https://www.cnblogs.com/liuyingself/p/8021920.html
Copyright © 2020-2023  润新知