第一行代码的作用是获取datagrid的第index行的所有编辑器对象,并将其存储在变量editors中。

第二行代码的作用是从editors中获取第二个编辑器对象(下标为1),并将其转换为combobox对象。然后,获取该combobox对象的当前选中值,并将其存储在变量chargingType中。

解析这两行代码的作用var editors = datagriddataGridObjdatagridgetEditors index;	var chargingType = $editors1targetcomboboxgetValue;

原文地址: https://www.cveoy.top/t/topic/fqYq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录