JavaScript总结(十)--非空判断

2018-08-22  本文已影响12人  风的低语

非空判断

if (null !== variable1 || undefined !== variable1 || '' !== variable1)
上一篇 下一篇

猜你喜欢

热点阅读