判断当前浏览器是否支持HTML5的日期控件

function checkSupportH5Date(){
    var i = document.createElement("input");
    i.setAttribute("type","date");
    return i.type !== "text";         
}

 

posted @ 2017-04-17 13:48  欧欧欧锋_  阅读(300)  评论(0编辑  收藏  举报