js 三元表达式

tagname=(tagname==""||tagname==undefined)?'':tagname

你可能感兴趣的:(js 三元表达式)