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
迷茫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...
我想大声告诉你2017-06-07 09:26:23
You can consider using a framework to write, such as angular.js, vue.js.
巴扎黑2017-06-07 09:26:23
Write these pages into js, and then dynamically insert them into the body