The solution to the invalid Click event on an Apple phone

Source: Internet
Author: User

Recently in the development of a public number, there is a click event, on the Android phone can be used, but placed on the Apple phone is not, and there are two pages have this click event, the first page on the Apple phone can be normal use, the second page is not, the first page uses

$ (' selector '). Click (function () {})

The second page uses the event delegate

$ (' selector '). On (' click ', ' selector ', Unction () {})

See the online answer is to add cursor:pointer to the event source, but still not, finally I changed the click event to the Touchstart event, I do not know what the reason, may be the Apple phone bug, but why also use a click event, The second page is not, there is no great God can answer my doubts

The solution to the invalid Click event on an Apple phone

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.