Home  >  Article  >  Web Front-end  >  ExtJS如何设置与获取radio控件的选取状态_extjs

ExtJS如何设置与获取radio控件的选取状态_extjs

WBOY
WBOYOriginal
2016-05-16 17:02:581067browse

获取

复制代码 代码如下:

function IsChecked(radioId) {
return Ext.getCmp(radioId).checked;
}

设置
复制代码 代码如下:

function SetRadio(radioId, isChecked) {
Ext.getCmp(radioId).setValue(isChecked);//或者setValue("on")也可以设置为选中
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn