
JS
文章平均质量分 74
Devil26
热爱编程,对代码一丝不苟,有一定的自学能力。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JS实现日历控件
的确,网上各种日历控件数不胜数,但也正是因为太多,所以选择起来也是件困难的事情。前不久,因为项目要求,就去试着找了些,但总感觉都不太完美,或者因为不够简单,不需要那么复杂的功能,或者因为不好用,不适合项目。我也选一个最接近的试着去读懂,然后想把它改成我所需要的,可惜的是,根本没法读懂,也不知道是我一直都习惯自己写,确实不擅长读别人的代码,还是确实因为其代码难读,其中取的变量名都是ABC之类的,纠结原创 2011-12-14 21:37:50 · 975 阅读 · 0 评论 -
How to redirect page in JavaScript
window.location= “xxx.html”; (or window.location.href = "xxx.html";) window.location.replace("xxx.html") NOTE: The second one is better thanthe first one, because replace() does not put the o转载 2013-06-05 17:15:54 · 733 阅读 · 0 评论 -
How to inherit an Object in JavaScript
We can use the prototype chain to implement the inheritance of methods from a super class. The method most people use:function inherit(sub, supper){ var subProto = sub.prototype = new supper(原创 2013-06-05 20:30:57 · 900 阅读 · 0 评论