var value1="val1";
var value2="val2";
alert(value1&&value2); //结果为value2
alert(value1||value2); //结果为value1