A small error-web-File System Path settings

Source: Internet
Author: User

This small error affects me for four hours.

In eclipse, when I set the file path, I mistakenly thought that the file itself is also a path. Therefore, in order to read the content in the folder under the same directory as it, I used the parent directory. But in fact, the file path is the folder where it is located. Therefore, to read the content in this folder, you need to use the current path.

 

In fact, this problem is easy to solve, but why does it take me so much time? The main reason is that you are not familiar with JavaScript debugging. Because I copy other people'sCodeBut they cannot see their file structure.Source codeI can't see a lot of clues (in fact, I can also see it carefully ). It was later debugged through firebug (firebug is really a good thing ). ThereforeProgramWhen debugging, it is best to use firebug :)

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.