Use Cordova's serve tool to help debug JS errors

Source: Internet
Author: User

1.CD Execute Cordova serve Android command to the root of the project:

2. Open the browser chrome, enter the address http://localhost:8000/android/www/index.html, many alert, regardless of direct point OK,

3. Check for errors

Like the first mistake, OK check, write program write tired, write anxious, if is go check code may also easy to find,

But like the second mistake, if not the Serve tool tells you here error, may get a night maybe you do not know here is wrong, also blame is not the program where wrong, it should be juqery.js should be introduced in front of jquery plugin, otherwise plug-ins can not find the definition of jquery. The following sequence of introductions is the right one,

Use Cordova's serve tool to help debug JS errors

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.