
JS基本代码库
文章平均质量分 78
trace332
我就是我的作品!
展开
-
JSBL_事件及DOM操作
使用方法:可直接使用,或摘出部分需要的函数 事件: if (typeof JSBL == "undefined"){ var JSBL = {}; }JSBL.Event = { addEvent: function(obj, evType, fn){ if (obj.addEve原创 2009-07-28 11:03:00 · 819 阅读 · 0 评论 -
接口及继承相关方法
类式继承:function dw(x) { document.writeln(x + "");}function extend(subClass, superClass) { var F = function(){}; F.prototype = superClass.prototype; subClass.prototype = new F(); subCla原创 2009-07-28 11:08:00 · 520 阅读 · 0 评论