var condition1 = true,
condition2 = false,
access = condition1 ? (condition2 ? "true true": "true false") : (condition2 ? "false true" : "false false");/因为condition1 = true,返回(condition2 ? "true true": "true false"),condition2 = false返回"true false"/
console.log(access); // 输出 "true false"
网友评论