2016年6月14日

style,currentStyle,getComputedStyle的区别和用法

摘要: 转载于:http://www.it165.net/design/html/201406/2688.html 在看博客的时候看到了这个这3个家伙-style,currentStyle,getComputedStyle。以前学习的时候没碰到过,既然现在碰到了,就小小的研究了一下。发现了些许问题,也许是时 阅读全文

posted @ 2016-06-14 22:39 放风筝的小小马 阅读(477) 评论(0) 推荐(0) 编辑

JavaScript小功能

摘要: 1. JS判断是否为一个有效日期 1 2 3 4 function check(date){ return (new Date(date).getDate()==date.substring(date.length-2)); } //参数date可以格式化为xx-xx-xx或xxxx-xx-xx或用 阅读全文

posted @ 2016-06-14 21:07 放风筝的小小马 阅读(463) 评论(0) 推荐(0) 编辑

导航