解析这两行代码的作用var editors = datagriddataGridObjdatagridgetEditors index; var chargingType = $editors1targetcomboboxgetValue;
第一行代码的作用是获取datagrid的第index行的所有编辑器对象,并将其存储在变量editors中。
第二行代码的作用是从editors中获取第二个编辑器对象(下标为1),并将其转换为combobox对象。然后,获取该combobox对象的当前选中值,并将其存储在变量chargingType中。
原文地址: https://www.cveoy.top/t/topic/fqYq 著作权归作者所有。请勿转载和采集!