如果作为条件表达式,不需要使用!!进行转换,Javascript会自动转换,!!就只应用于将类型转换为布尔值。
参考链接:http://blog.csdn.net/tantanit/article/details/52287700