小编Rud*_*ger的帖子

ActionScript:我应该总是使用严格的相等("===")吗?

我想知道在进行相等检查时是否应该总是使用"==="(严格相等)...有没有什么时候最好使用"=="(非严格相等)?特别应该:

  • if (param1 == null || param1.length == 0)

  • if (param1 === null || param1.length === 0)

像字符串这样的东西怎么样? param1 == "This is a String."

actionscript equality strict

4
推荐指数
1
解决办法
753
查看次数

标签 统计

actionscript ×1

equality ×1

strict ×1