Home  >  Q&A  >  body text

html5 - 如何调用html重复代码

迷茫迷茫2766 days ago468

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:51:09

    Write the page header on the server side as php or jsp. The asp page uses ajax asynchronous request to load the header you need. You can use the jQuery load() method to request to load the page header and footer. Each time you request a new page, only Update the middle part.
    It’s easier if you use a framework. There are corresponding methods in ng and jQuerymoblie, just use the corresponding template

    reply
    0
  • PHPz

    PHPz2017-04-17 13:51:09

    模板继承

    reply
    0
  • Cancelreply