js 获取时间相关


        $(document).ready(function () {
            var date = new Date();
            var sb = "";
            for (var i = 0; i < getDaysInMonth(date.getFullYear(), (date.getMonth() + 2)) ; i++) {
                sb += ‘<td><\%#Eval("‘ + (i + 1) + ‘")%></td>‘;
            }
            $("#day").innerText(sb);
            alert($("#day").innerText())
        })
        function getDaysInMonth(year, month) {
            month = parseInt(month, 10) + 1;
            var temp = new Date(year + "/" + month + "/0");
            return temp.getDate();
        }

js 获取时间相关,布布扣,bubuko.com

js 获取时间相关

上一篇:js动态添加file控件


下一篇:CSS之清除浮动