0

Dojo : FilteringSelect , 必需: "false" , 不工作

我的代码结构是,

var user_search = new FilteringSelect({
                        id: "user_search",
                        name: "user_search",
                        searchAttr: "displayName",
                        type: "text",
                        required: "false",
                        autoComplete: true, 
                        labelFunc: formatLabel,
                        labelType: "html",
                        invalidMessage: "No user found",
                        style: "width: 166px;height:28px;background-color:white"
                    }, this.user_search);

任何人都可以帮忙吗?

谢谢!

4

1 回答 1

3

属性应该required是布尔值false,而不是字符串"false"

 ...
 type: "text",
 required: false,
 autoComplete: true, 
 ....
于 2012-07-31T07:08:50.587 回答