会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
强子的专栏
经历过毁灭,才可能会有重生!
博客园
首页
新随笔
联系
订阅
管理
2015年6月7日
javascript中对条件判断语句的优化 分类: JavaScript 2015-06-07 09:54 832人阅读 评论(2) 收藏
摘要: 不管写什么程序,平时都会用到条件语句,如:if...else... switch这样的语句,来达到对条件的判断。下面看来一段代码:function abc(test){ if (test == 1){ console.log('test的值是'+test); ...
阅读全文
posted @ 2015-06-07 09:54 zhiqiang21
阅读(302)
评论(0)
推荐(0)
编辑
公告