The front end of the page after the back end to get hand configuration problems

Source: Internet
Author: User

Since the front page is done, the set of pages has been set for 4 days, has not been successful, the fourth day after unremitting efforts and to the seniors learn elder sister finally will this problem solved, hereby released a log record some of the first set page success experience.

Experience:

1. After getting the front-end page (HTML), you can change it to a JSP file, and then start running some, look at the style of what does not add, no loading style, the style loaded up, such as:


You can then run the style again and load it successfully.

2. Second, if there is a <script> script, you need to firebug under the console to see if the error, the front end with a kissy script, run after Kissy script is not introduced, so in the

So we brought Kissy in.

3. Run again to see what is wrong and find the following error:

Ask a little learning elder sister, learn elder sister said this thing did not introduce, pondering a bit should be in site-config.js inside, then introduced the following JS file:

4. Run the project again to view the console or report the above error Pw.io did not introduce, so I went to check the configuration file, is not a problem with the configuration file, the configuration file is as follows:

The feeling should be the path of the problem caused by no introduction, personal feeling should be changed to run after the site Directory address, so the

This site.staticwebsite changed to Site.website.

The following are also changed to the site. Website.

5. Re-run the project discovery or did not introduce, really can not find the problem, I started all kinds of back, because before run through, and later found that the original is two <script> order of Things

The following <script> need to use the above <script>, if you change the order of the two after the run will be an error!! This problem must be noticed!

6. Forget to say something, and add that the Kissy script is running in the directory to find and Kissy related things.

So also need to kissy required page js and Io JS copy to this directory! As follows:

7. So far, in running the project, there will be no problem, then the form submitted by those things, mainly to let the Kissy script run up other problems should not be difficult to solve!


The front end of the page after the back end to get hand configuration problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.