- 链接地址:https://blog.csdn.net/wangzhifuhaha/article/details/17994735#comments_3382593
- 链接标题:javascript技巧-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:504
文章浏览阅读992次。使用逻辑符号&&或者||进行条件判断[js] view plaincopyprint?var foo = 10; foo == 10 && doSomething(); // is the same thing as if (foo == 10) doSomething(); foo == 5 || doSomething(); // is the s
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除
标签:javascript技巧