不信任数据的情况下给变量赋值

let temp = a.getCount() || -1; 当count为null时,temp赋值为-1;

posted @ 2019-08-08 16:01  流星曳尾  阅读(205)  评论(0)    收藏  举报