摘要: 123=='1234' && 'active' 为真时,返回 'active '...可以当成 三元运算符的简写形式哦. let val = val || 'active' 当 val 为空 或者 未定义时,返回 'active' ,可以用来赋值默认值! 阅读全文
posted @ 2018-06-04 00:16 whmmm 阅读(945) 评论(0) 推荐(0)
//增加一段JS脚本,为目录生成使用