newsaletopindexOfappsmithstorefilter == idx3 appsmithstorefilter == !appsmithstorefilter 假设appsmithstorefilter是空值那么这段代码返回结果是什么
如果appsmith.store.filter是空值,那么条件表达式中的这个部分 appsmith.store.filter == ''|| !appsmith.store?.filter 将会返回true,因此整个条件表达式将会被认为是true,从而返回true。
原文地址: https://www.cveoy.top/t/topic/fhCQ 著作权归作者所有。请勿转载和采集!