写在mui.plusReady中的代码不执行?



 <script src="../js/mui.min.js"></script>
<link href="../css/mui.min.css" rel="stylesheet" />
<link href="../css/other.css" rel="stylesheet" />
script>
            mui.plusReady(function(){
                console.log("hahahahah");
                var cDate=document.getElementById("classDate");
                var cTime=document.getElementById("classTime");
                var cCity=document.getElementById("classCity");
                var cAddress=document.getElementById("detailAddress");

                cDate.addEventListener("tap",function(){
                    var nDate=new Date();
                    nDate.setFullYear();
                    var minDate=new Date();
                    minDate.setFullYear(2010,0,1);
                    var maxDate=new Date();
                    maxDate.setFullYear(2020,11,31);
                    puls.nativeUI.pickDate(function(e){
                        var d=e.date;
                        d.value=d.getFullYear()+"-"+(d.getMonth()-1)+"-"+d.getDate();
                    });
                });
            });
        </script>

css3 移动web开发 html5 mui

恶魔devil 9 years, 10 months ago

Your Answer