首页 > 技术文章 > JS中||的某些用法
maidongdong 2018-03-29 16:19 原文
var a = 0 ||'sda';console.log(a);//sda
var a = '' ||'sda';console.log(a);//sda