上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页
摘要: 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)
摘要: 1. [文件] webtoolkit.md5.js ~ 7KB /**** MD5 (Message-Digest Algorithm)* http://www.huiyi8.com/webyuanma/​***/var MD5 = function (string) {function Rota... 阅读全文
posted @ 2014-07-07 17:24 虚空之眼 阅读(307) 评论(0) 推荐(0)
摘要: 1. [文件] webtoolkit.sha1.js ~ 4KB /**** Secure Hash Algorithm (SHA1)* http://www.huiyi8.com/css3/***/function SHA1 (msg) {function rotate_left(n,s) {v... 阅读全文
posted @ 2014-07-07 17:20 虚空之眼 阅读(335) 评论(0) 推荐(0)
摘要: 1. [代码]js代码 /** MAP对象,实现MAP功能** 接口:* size() 获取MAP元素个数* isEmpty() 判断MAP是否为空* clear() 删除MAP所有元素* put(key, value) 向MAP中增加元素(key, value)* remove(ke... 阅读全文
posted @ 2014-07-07 17:17 虚空之眼 阅读(368) 评论(0) 推荐(0)
摘要: 1. [代码][JavaScript特效]代码 关于javascript中的 return false和return true 2008年12月22日 星期一 下午 09:31return 是javascript里函数返回值的关键字,一个函数内处理的结果可以使用return 返回,这样在调用函数的... 阅读全文
posted @ 2014-07-07 17:03 虚空之眼 阅读(410) 评论(0) 推荐(0)
摘要: 1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, "number": t... 阅读全文
posted @ 2014-07-07 17:00 虚空之眼 阅读(133) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页