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

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

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