答案 0 :(得分:2)
表达意味着:
isCached
时 currentCookie !== null
为真,否则为
你应该像
一样阅读var isCached = (currentCookie !== null)
或更详细地等同于
var isCached;
if (currentCookie !== null) {
isCached = true;
}
else {
isCached = false;
}
答案 1 :(得分:2)
该片段与以下内容相同:
var isCached = (currentCookie !== null);
换句话说,当且仅当isCached
严格不等于空引用时,true
才会设置为currentCookie
。