摘要: 1.事件源对象event.srcElement.tagNameevent.srcElement.type捕获释放event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键event.keyCodeevent.shift... 阅读全文
posted @ 2014-07-08 16:08 虚空之眼 阅读(234) 评论(0) 推荐(0)
摘要: 1. [代码][JavaScript]代码 /*!* jLim Core** jLim is a small JavaScript base code. It can be used to built your own* JavaScript library or framework.** @ve... 阅读全文
posted @ 2014-07-08 16:01 虚空之眼 阅读(360) 评论(0) 推荐(0)
摘要: 1. [代码][JavaScript]代码 //javascript Object: ajax Object//Created By RexLeefunction Ajax(url,data){ this.url=url; this.data=data; this.browser=(func... 阅读全文
posted @ 2014-07-08 15:56 虚空之眼 阅读(174) 评论(0) 推荐(0)
摘要: 1. [代码][JavaScript]代码 JavaScript函数调用规则一(1)全局函数调用:function makeArray( arg1, arg2 ){ return [this , arg1 , arg2 ];}这是一个最常用的定义函数方式。相信学习JavaScript的人对它的调... 阅读全文
posted @ 2014-07-08 15:53 虚空之眼 阅读(296) 评论(0) 推荐(0)
摘要: 1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s... 阅读全文
posted @ 2014-07-08 15:45 虚空之眼 阅读(231) 评论(0) 推荐(0)