看视频的时候发现的技巧,于是查了一查。|| && 非常妙 | | function documentTitle(theTitle) { if (!theTitle) { theTitle = "Untitled Document"; } } 看这段代码,如果用||改写会更加简洁 function