不错的一个日期输入 动态

2019-06-03 17:10:04丽君

}
function reAppendSelect(selecter,startIndex,endIndex,selIndex)
{
    while(selecter.options.length>0)
    {
        selecter.removeChild(selecter.options[selecter.options.length-1]);
    }
    for(i=startIndex;i<=endIndex;i++)
    {
        var op=new Option(i,i);
        selecter.options.add(op);
        if(arguments[4]!=""){
            if(i==arguments[4])
                op.selected=true;
        }else{
            if (i==endIndex)
                op.selected=true;
        }
    }

}
function al(obj,lissener,func){
    if(agt.indexOf('firefox')!=-1){
        obj.addEventListener(lissener,function(){eval(func);},false);
    }else{
        obj.attachEvent('on'+lissener,function(){eval(func);});
    }
}


</script>
</head>

<body>
<input onclick="DateSeter(this);" />
</body>
</html>