JavaScript中两个感叹号的作用说明 先用一个简单的例子说明: 复制代码 代码如下: var o={flag:true}; var test=!!o flag; 等效于var test= JavaScript 2022-04-08 64 点赞 0 评论 96 浏览