Problems in using JS in JSP

Source: Internet
Author: User

Recently using JS to verify the legitimacy of the client input data, JS written well, put in the browser to run, Strange is JS does not work, and then use Fiebug to debug, see JS where out of the problem, but, Firebug always prompt did not find the script. Check the JSP page content and JS path problem, there is no problem, but, why Firebug is prompted not to find JS script it? Got a morning, wrote more than n JSP page and JS to test, and finally found a problem, if JS inside there are grammatical errors, such as Chinese and English punctuation is not clear, the string connection when no Plus +, so the JS is definitely problematic, so the browser can not recognize JS, So when writing the JS test client input, the first thing to check their own JS is correct: Grammar is not a problem, punctuation is the English state input.

Problems in using JS in JSP

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.