search

Home  >  Q&A  >  body text

javascript - Front-end page problem: Divide a page into several pages to write, but when running an index, the complete page is displayed

Front-end page problem: Divide a page into several pages to write, but when running an index, the complete page is displayed. What technology is this? How to achieve it

女神的闺蜜爱上我女神的闺蜜爱上我2736 days ago805

reply all(5)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-07 09:26:23

    Template inheritance, it’s faster to write using a framework

    reply
    0
  • 迷茫

    迷茫2017-06-07 09:26:23

    Dear, what you are talking about should be to divide the page into modules, and then load them separately according to the page module; there are actually many ways to achieve this:
    1. Directly use iframe to nest subpages
    2. Asynchronously load the page module through ajax and refresh the page asynchronously Partial
    3. Use js framework or template plug-in, such as: angular, Juicer.js...

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-07 09:26:23

    You can consider using a framework to write, such as angular.js, vue.js.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-07 09:26:23

    Can be made into a SPA single page

    reply
    0
  • 巴扎黑

    巴扎黑2017-06-07 09:26:23

    Write these pages into js, ​​and then dynamically insert them into the body

    reply
    0
  • Cancelreply