js两个判断&&的值与||的值时间:2022-03-02 15:37:51var value1="val1"; var value2="val2"; alert(value1&&value2); //结果为value2 alert(value1||value2); //结果为value1