javascript和其它语言一样,逻辑运算主要包括 与运算&& ,或运算 II 和非运算 !
与运算(&&)是指两个条件都为true时,整个表达式为true,或运算(II)是指只要有一个条件为true时,整个表达式为true,否则false,
非运算符就是指把true编程false,把false变出true。
document.write(4>3 && 3>2);//true document.write(4>3 && 1>2);//false document.write(4>3 || 1>2);//true document.write(!(1>2));//true