How arttemplate proposes public html, and how to cooperate with java.

I now use the sea.js to do the modularization, using the arttemplate request interface to render the page, what about some common navigation header footer? I can"t use include. Art"s file without node. In the past, all the pages were set directly with PHP. How to propose a public html now.

When the

page jumps, should I write an absolute path to the a link? What about the late routing rules? Will the server change it?

novice has never been separated, a little confused, ask for God"s guidance, thank you very much.

Mar.03,2021

1. Does the project use three frameworks? I think it's a little more convenient to use angular's ng-include to extract Chestnut

.

2. If you think about it, you can also try this. Refer to the delay_script function method below and set a page to import the art-template template function ( loadArtTemplate ). You can put the path of loading js and the id of the template as parameters, so that the template of the page is loaded, and then define a method of importing the art-template template of the page without traversing data, insertArtById () . The id of the template for the parameters and the id; that needs to be inserted into the pit

write something like this:
js file header.js

<div id="headerBar"></div>

call

like this on the page that needs to be referenced.
loadArtTemplate('../js/header.js','header')
insertArtTempById('header','header')
function delay_script(A) {
  var B = document.createElement("script")
    , C = "src"
    , D = "text/javascript";
  B.setAttribute(C, A);
  B.setAttribute("type", D);
  document.body.appendChild(B);
  return B
}

add : if it is simple and convenient, for html files that do not need to be changed, it is recommended to import angular.js . The method is too simple. Use it as a plug-in and use the ng-include instruction to extract

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb975-31a79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb975-31a79.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?