Ext.isEmpty( Mixed value, [Boolean allowBlank] ) 用法
2014-02-28 11:03
411 查看
Ext类:
isEmpty( Mixed value, [Boolean allowBlank] ) : Boolean
返回true,如果传递进来的值为null、undefined或者一个空的字符串。
参数:
value : Mixed
需要测试的值
allowBlank : Boolean
(可选)返回true,如果一个空字符串不被认为是空。(译者注: 这句话的意思是如果传进来一个空字符串,并且allowBlank这个参数为true,函数会返回true,也就是允许空字符。 原文: Pass true if an empty string is not considered empty)
返回值:
Boolean
eg:
Ext.isEmpty(Ext.getCmp('newProjectWin'),true)
判断Id='newProjectWin'的组件是否存在,存在返回false,不存在返回True
isEmpty( Mixed value, [Boolean allowBlank] ) : Boolean
返回true,如果传递进来的值为null、undefined或者一个空的字符串。
参数:
value : Mixed
需要测试的值
allowBlank : Boolean
(可选)返回true,如果一个空字符串不被认为是空。(译者注: 这句话的意思是如果传进来一个空字符串,并且allowBlank这个参数为true,函数会返回true,也就是允许空字符。 原文: Pass true if an empty string is not considered empty)
返回值:
Boolean
eg:
Ext.isEmpty(Ext.getCmp('newProjectWin'),true)
判断Id='newProjectWin'的组件是否存在,存在返回false,不存在返回True
相关文章推荐
- 本地通知(UILocalNotification)的学习和使用(通过本地通知实现提醒功能)
- JAVA hdu 3279 Nth Largest Value
- RCP: MANIFEST.MF, plugin.xml, build.properties三种文件的区别
- IOS学习笔记(七)之UISegmentedControl分段控件的基本概念和使用方法
- IOS学习笔记(七)之UISegmentedControl分段控件的基本概念和使用方法
- Servlet的request.getRemoteAddr()方法回去地址是0:0:0:0:0:0:0:1
- android Build手机基本信息
- 泛型与容器(4)——Queue
- NGUI 拖拽丢弃实现
- 从客户端中检测到有潜在危险的Request.Form值的解决方法
- iOS开发xcode报错:"xxxxxx"has been modified since the precompiled header was built
- iOS开发xcode报错:"xxxxxx"has been modified since the precompiled header was built
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was
- UITableView,UIScrollView,UITableViewCell
- 消息队列(Message Queue)简介及其使用
- 导入工程错误Androidrequires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please useAndroid T
- JSF中Initial Request 和 Postback Request 的区别
- 【6年开源路】海王星给你好看!FineUI v4.0正式版暨《FineUI3to4一键升级工具》发布!
- AndroidUI设计之布局-详细解析布局实现
- media query 在响应试网页中的准确应用