jquery error. New! Thanks, guys.

Source: Internet
Author: User
Tags php template
jquery Error: Newcomers to help! Thank you, everyone.
Why printing errors, it is not found, trouble everybody help!

Share to: more


------Solution--------------------
Your server doesn't have to return the correct JSON!
Possible cause is a BOM header
------Solution--------------------
URL's wrong.
------Solution--------------------
Can this __url__ be resolved?
------Solution--------------------
References:
Quote: References:

Can this __url__ be resolved?
This is a function of the PHP template. He represents a path.


You can see that it represents a path, but when you enclose it in double quotation marks, will your template engine be able to parse it out?
If the URL is ok, use Firefox's firebug or Google console to see if there is a clear hint of the error
------Solution--------------------
The error function has three parameters: an XMLHttpRequest object, an error message, and optionally a catch exception object.
You can use Window.console.debug () to print out the wrong information in Firebug.

...
Error:function (XMLHttpRequest, Textstatus, Errorthrown) {
Window.console.debug (XMLHttpRequest);
Window.console.debug (Textstatus);
Window.console.debug (Errorthrown);
}
...

------Solution--------------------
Obviously, you this is thinkphp framework, you can when you commit to perform Ajax, the browser Firebug debugging, tracking down the URL execution path, to see whether the page error or output.
  • 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.