H5 Mobile End Ios/android Compatibility Summary, continuous update in ...

Source: Internet
Author: User

H5 Mobile End Ios/android Compatibility Summary, continuous update in ...

1. iOS does not recognize the date

new date ("2018-07-01 08:00:00") under Android Normal display can be directly carried out a variety of operations conversion, and in iOS for invalid date, get the timestamp of Nan, it is a bit of a pit, can only recognize the Strong style= "Font-size:inherit; Color:inherit; Line-height:inherit; margin:0px; padding:0px; Font-weight:bold; " >new Date ("2018/07/01 08:00:00") this, so need to convert, the solution for the unified increase .replace (/-/g, '/') ;

New Date ("2018-07-01 08:00:00". Replace (/-/g, '/'))

H5移动端IOS/Android兼容性总结是一个系列,之后会持续更新中...

H5 Mobile-ios/android compatibility Summary, ongoing updates ...

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.