var wintype = !!os[1];

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

点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部