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.