channel disconnected问题的解决

protected function searchBtn_clickHandler(event:MouseEvent):void { if ("" == searchTxt.text) getEmployeesResult.token = employeeService.getEmployees(); else getEmployeesResult.token = employeeService.getEmployeesByName(searchTxt.text); }

以上代码目的是在search文本框中输入检索字符后按下search按钮进行检索,如果没输入任何字符则显示所有

     getEmployeesResult.token = employeeService.getEmployeesByName(searchTxt.text);
如果把searchTxt.text误写成searchTxt,检索时则会出现channel disconnected的错误

你可能感兴趣的:(flex)