javascript
文章平均质量分 59
唐品
web开发者
展开
-
Javascript 原始值和对象引用
原始值包括:undefined、null、布尔值、数字和字符串;对象包括数组和函数。 原始值是不可更改的,这对于数字和布尔值来说很好理解,改变一个数字的值本身就说不通。但是,对于字符串来说就不太明显了,字符串看起来有点像是字符组成的数组,然而JavaScript是禁止通过指定索引来修改字符串中的字符的。字符串中有的方法看上去是返回了一个修改后的字符串,实际上却是返回的一个新的字符串转载 2014-03-15 14:43:41 · 787 阅读 · 0 评论 -
call和appy
call和apply的主要区别就是调用的方式不一样。原创 2014-04-14 14:08:49 · 716 阅读 · 0 评论 -
jquery.extend源码分析
jQuery.extend的用法有以下几种:1.扩展jQuery。有两种方式,一是扩展jQuery的静态方法,另一种是扩展jQuery对象的实例方法。//扩展静态方法$.extend({ sayHello:function(){console.log("hello")}});//扩展实例方法$.fn.extend({ log:function(){ c原创 2014-04-05 11:50:43 · 902 阅读 · 0 评论 -
mouseout 事件
我们来看一下jQuery文档中的解释The mouseleave event differs from mouseout in the way it handles event bubbling. If mouseout were used in this example, then when the mouse pointer moved out of the Inner element原创 2014-04-11 15:53:25 · 958 阅读 · 0 评论