var a=[5,6];
var b= a;
b[0] = "My name";
console.log(a)
VM141:4 ["My name", 6]
var i=2;
for(var i=0,j=0;i<5;i++){
console.log(i)
}
console.log(i)
VM123:3 0
VM123:3 1
VM123:3 2
VM123:3 3
VM123:3 4
VM123:5 5
var i=2;
for(var i=0,j=0;i<5;i++){
console.log(i)
}
VM128:3 0
VM128:3 1
VM128:3 2
VM128:3 3
VM128:3 4
var a=(1&&2&&5) || 3
console.log(a)
VM169:2 5
jQuery中提供了四种事件监听方式,分别是bind、live、delegate、on,对应的解除监听的函数分别是unbind、die、undelegate、off