//方法一
var boolean=Boolean(number);
//方法二
var boolean=!!number;
boolean类型转换
猜你喜欢
转载自blog.csdn.net/weixin_43837268/article/details/86685303
今日推荐
周排行