输入banner图图片脚本导航/分类

Javascript!!的作用_javascript技巧

var wintype = !!os[1];

取变量的Boolean值,
应该相当于 var wintype = os[1]?true:false,
但显然简洁很多。