Play with DWZ (1) --- How to Use dwz and dwz in the project ---
Recently, I have been looking for a completely open-source web Client framework. I have seen dwz. Although I don't know how it works, it still supports domestic production. Let's take a look at it first. This article describes how to use the dwz framework in the project.
Download dwz: https://code.csdn.net/dwzteam/dwz_jui first
After the package is downloaded, decompress the package.
Next, create a folder named dwz under the webroot of your web project, and copy the content to it.
Copy the index.html file in the dwzfolder to the folder on your write page,
Open the index file and modify the path of the referenced file, for example:
<Html> Note that the path for referencing dwz. frag. xml in the js Code should also be changed. After the modification is successful, deploy and run it in tomcat. The page is displayed as follows:
Index.html is generally the first page of the project. You can also change the name of the page. js and css files in the page are used in the project. You do not need to reference them again on other pages, later, the interaction with the server is only data interaction. Other pages only need page fragmentation, which is part of <body> </body>.