摘要: 三元运算符 判断条件?(条件为真时执行):(条件为假时执行) 对比记忆 var color='red' ; //判断颜色是否为red if(color 'red') { console.log('takeout'); }else { console.log('nothing'); } //使用三元运 阅读全文
posted @ 2017-12-27 20:53 chivasknight 阅读(166) 评论(0) 推荐(0) 编辑