怎么获取填报控件呢,事件为初始化事件var city=contentPane.getWidgetByName("city")这个获取不到对象呢setTimeout(function(){var head=contentPane.getWidgetsByName("head"); if(head!=undefined){for(var i=0;i<head.length;i++){ if(head.getValue()=='总公司'){ var park = contentPane.getWidgetsByName("park"); var city = contentPane.getWidgetsByName("city"); city.setEnable(false); park.setEnable(false); }else if(head.getValue()!='总公司'){ head.setEnable(false); }}}else { alert(head.getValue()) alert(head.getValue()) alert(head.getValue())}},100)