摘要:
常用的一些javascript小技巧 作者:隆轩 日期:2005-12-21 字体大小: 小 中 大 //事件源对象 event.srcElement.tagName event.srcElement.type //捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture();//事件按键 event.keyC... 阅读全文
摘要:
一.运用prototype属性 定义对象 A: function A() { ... } 给A添加属性或方法 A.prototype.aa A.prototype.bb = function() { ... } 创建一个对象继承 A 对象 function B() {} B.prototype = new A(); 重写 A 对象的 bb ... 阅读全文