我有多个条件,如下所示
if((readCookie("endData") != "" &&
readCookie("lastRowArray") != "" &&
readCookie("histClickedImgId") != "" &&
readCookie("histClickedPage") != "" &&
readCookie("remove_count") != "" &&
readCookie("histBack") != "") &&
(readCookie("endData") &&
readCookie("lastRowArray") &&
readCookie("histClickedImgId") &&
readCookie("histClickedPage") &&
readCookie("remove_count") &&
readCookie("histBack") )){
cdtChecked = true;
}
有什么办法可以减少代码。