![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVASCRIPT
文章平均质量分 50
willeager
这个作者很懒,什么都没留下…
展开
-
JS结合PHP模板的二级联动
工作时用到的一个例子,先放下方便修改 var types = new Array(<!--{echo count($group_identity)}-->); <!--{loop $group_identity $key $val}--> types[{$key}]=new Array({echo count($val)}); ...原创 2011-01-04 20:49:44 · 99 阅读 · 0 评论 -
JS压缩工具
对了,说到 js 压缩,强烈推荐 google 的开源项目http://code.google.com/p/closure-compiler/先用这玩意压缩,然后gzip压缩,无敌了原创 2011-04-26 12:25:52 · 83 阅读 · 0 评论 -
JS urlencode,urldecode
var LittleUrl = { // public method for url encoding encode : function (string) { return escape(this._utf8_encode(string)); }, // public method for url decoding dec...原创 2011-05-27 16:35:09 · 146 阅读 · 0 评论 -
JS prototype、类、对象、命名空间结合jQuery的理解
<script type="text/javascript"> //-------------prototype对instanceof的影响---------------- //使用new ABC()得到的东西继承了ABC的 prototype 的属性和方法 //instanceof 的逻辑:先判断对象属于哪个类,再看那个类的prototype //1.没有ret...原创 2011-02-15 14:36:44 · 85 阅读 · 0 评论 -
JQUERY的学习笔记
1.(function(){})();第一个括号里面是个匿名函数,最后一个括号表示马上执行第一个括号里面的代码。2.jQuery扩展方法其实可以有多个参数:o.extend=o.fn.extend=function(){ var J=arguments[0]||{}, H=1,I=arguments.length,E=false,G; if(typeof J==="boole...原创 2011-06-21 11:13:04 · 64 阅读 · 0 评论 -
数组、参数数组
数组 与 参数数组函数中的arguments是对象但不是数组对象arguments instanceof Array: falsearguments instanceof Object: true把数组传给函数当参数,argements仅有一个元素把参数数组传递给函数当参数,argements包含多个元素传递给函数2个参数的办法:A方...原创 2011-04-10 20:47:35 · 137 阅读 · 0 评论