radio.js
来自「数据库系统教材中附录的课程设计accomodation宿舍管理系统源码」· JavaScript 代码 · 共 29 行
JS
29 行
/*
* Ext JS Library 2.0 Beta 1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/** * @class Ext.form.Radio * @extends Ext.form.Checkbox * Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type. * Radio grouping is handled automatically by the browser if you give each radio in a group the same name. * @constructor * Creates a new Radio * @param {Object} config Configuration options */Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { inputType: 'radio', /** * If this radio is part of a group, it will return the selected value * @return {String} */ getGroupValue : function(){ return this.el.up('form').child('input[name='+this.el.dom.name+']:checked', true).value; }});Ext.reg('radio', Ext.form.Radio);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?