Git Product home page Git Product logo

Comments (6)

xfhxbb avatar xfhxbb commented on September 26, 2024

哪款小米?安卓系统哪个版本?

from lcalendar.

xfhxbb avatar xfhxbb commented on September 26, 2024

我不确定是什么原因,但你可以修改成如下的代码再试一下。
var evt;
try {
evt = new CustomEvent('input');
} catch (e) {
//兼容旧浏览器(注意:该方法已从最新的web标准中删除)
evt = document.createEvent('Event');
evt.initEvent('input', true, true);
}

from lcalendar.

mei50923 avatar mei50923 commented on September 26, 2024

红米4.2.1,还有魅族自带的浏览器也不可以,MEIZIMX3,ios下有时候选择的时间会出现NaN,就是某个数字就显示NaN的情况。能弱弱的问一句这个代码的作用是什么吗var b = new CustomEvent("input"); w.trigger.dispatchEvent(b);为什么我把它注释了也看到有什么影响呢

from lcalendar.

mei50923 avatar mei50923 commented on September 26, 2024

iOS中使用 Date("2015-03-31 20:15:06").getTime() 获取时间戳时会得到Nan
解决办法:

function date2minis(date){
if(date == '' || date.length==0){
return 0;
}
if(date.indexOf(".")!=-1){
date=date.substr(0,date.indexOf("."));
//alert(date);
}
try{
date = date.replace(new RegExp("-","gm"),"/");
return (new Date(date)).getTime();
}catch(e){
}
return 0;
}
ios的问题可能和这个有关

from lcalendar.

xfhxbb avatar xfhxbb commented on September 26, 2024

我身边的设备没有发现问题,暂时没法重现,如果你那边有发现问题并有解决办法希望告诉我一下,感谢支持

from lcalendar.

HappyYawen avatar HappyYawen commented on September 26, 2024

我用的小米5,只能滚动年份,月和日都无法滚动。请问有解决方法吗

from lcalendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.