js 通过if变量判断时注意事项
摘要:
1 注意 if内部的变量即使不等于true 也会走到内部 ,如在 console 打印下面的内容 扛具体的结果 '请输入' == true false if('请输入'){console.log(11111)} 11111 即使用 if(myPars){执行命令 } 是判断 myPars 不是'' 阅读全文
posted @ 2019-11-04 16:32 凉梁凉糕 阅读(675) 评论(0) 推荐(0)
浙公网安备 33010602011771号