Javascript-ajax Mobile request failed??

Source: Internet
Author: User
This is the case, I use Chorme's mobile debugging can be used successfully Ajax, but the mobile phone (my phone is Huawei Mate7) Open execution is invalid, this is why?

Reply content:

This is the case, I use Chorme's mobile debugging can be used successfully Ajax, but the mobile phone (my phone is Huawei Mate7) Open execution is invalid, this is why?

As you said it would be possible to make it in Chrome, but not on the mobile side. If there is a capture tool that can be debugged, the request is abnormal and so on. If you do not grab the package tool, you can add a few prompt actions in the code such as alert (), adding callback functions in Ajax and so on to debug, it should be easy to find out where the problem is.
PS: There are two suggestions is your total amount of money from the front of the reception is not safe, this should be a service-side calculation just a bit better; the second is that time may be in the service side in the storage, after all, local time do not know is accurate. (Personal advice ha)

  • 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.