js判断多条件

yu-beng / 2023-08-15 / 原文

 

            if ((String(properties.SYDMC).includes(String(attributeValue)) || String(properties.SYDMC) == String(attributeValue)) &&
                (String(properties.AnotherField).includes(String(anotherAttributeValue)) || String(properties.AnotherField) == String(anotherAttributeValue))) {
            }