ios手机填坑总结

1. 日期格式

  ios系统、safari只能识别"2018/10/15 00:00:00",不能识别"2018-10-15 00:00:00",因此须要转换格式,日期字符串须要转换成日期对象来比较大小,也能够转成毫秒比较;css

  var startTime = new Date(startDate.replace("-", "/").replace("-", "/")); startTime这种日期对象能够直接比较大小;html

2. 阻止页面滚动

  注意:也能够经过阻止ontouchmove事件来实现,暂时以为下面的方法也能够用,安卓、ios均可以  ios

     $('body,html').css({'height':'100%','overflow':'hidden'});htm

相关文章
相关标签/搜索