function changeType(e){
$("#area_simple")[e?"hide":"show"](),
$("#area_flash")[e?"show":"hide"]()
}
e:代表 0或1
changeType(1);
[ ] 相当于 .
$("#area_simple")["show"]() 相当于 $("#area_simple").show()
把jQuery对象中的方法看成属性对待
function changeType(e){
$("#area_simple")[e?"hide":"show"](),
$("#area_flash")[e?"show":"hide"]()
}
e:代表 0或1
changeType(1);
[ ] 相当于 .
$("#area_simple")["show"]() 相当于 $("#area_simple").show()
把jQuery对象中的方法看成属性对待