Extjs 判断对象是非为null或者为空字符串


Ext.isEmpty(str,[allowEmptyString])

如果str为

  • null
  • undefined
  • a zero-length array
  • a zero-length string ( Unless the allowEmptyString parameter is set to true)//意思如果第二个参数设为true,则是允许str对象为空字符串

该方法返回true 

如果不为上面条件则返回false

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM