This fiddle requires user to select option B , so it gives that message when other than B option is selected. 不过,我需要在选择下拉菜单中将默认选项设置为 B。
http://jsfiddle.net/fortm/YpEMH/
我试过这个,但似乎无法在 SearchController 中设置 selectedName ..
selectedName = this.get('model').objectAt('firstChild')