validateOptions 客户端处理程序选项不起作用。它总是给出一个错误。这种方法有问题吗?
function doGet() {
var mc = new Array();
mc[0]='h';
mc[1]='ho';
mc[2]='hou';
mc[3]='hous';
mc[4]='house';
var app = UiApp.createApplication();
var rech = app.createTextBox();
var result = app.createLabel('Match').setVisible(false);
var ch = app.createClientHandler().validateOptions(rech, mc).forTargets(result).setVisible(true);
rech.addKeyUpHandler(ch);
app.add(rech);
app.add(result);
return app;
}