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' 这一句就可
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']上,可能是解决多浏览器的兼容问题.