javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/23 21:57:16
javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可
xNP_n o c 5J*ZB@aC1$@_e+8څ?ĸ1=̜s=CP nng~ojOӺӌuQ%FōBeU̓⦱jN?V~=\"[tlˬT# 07R /:/z@|N=Ht4I<8犎(nj_JG _/&柦䢗Ud=OFjR/H\~㳙!k P "[Q.<]16{ 'Ю˻6x=qĒ":g^z ;s

javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可
javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';
this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可以实现功能,为什么要加上各判断,这句 this['class']='nav_switch'到底有什么用?

javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可
他的用意可能是表达 如果this['className']为真的话赋值this['className'],否则赋值到this['class']上,可能是解决多浏览器的兼容问题.