随笔分类 -  javascript

摘要:由于Date不是非常的了解,所以在没网络的情况下,难倒了俺,现在在这里做个记录。<script src="dateEX.js"></script>window.onload=funtion(){var date = new Date(2011,1,1);var str = date.toChinaString();if(str=='2011年 1月 1日') alert(true);else alert(false);}请在 dateEX.js 文件里实现方法 toChinaStringDate.prototype.toChinaSt 阅读全文
posted @ 2013-04-09 07:29 就是这么一回事儿 阅读(222) 评论(0) 推荐(0)