0
使用下面的代碼我在餘燼中顯示組合框。更改組合框在燼中的聽衆js
{{view "select" content=model prompt="Please select a name" selectionBinding="App.selectedComboBoxController.model" optionValuePath="content.fullName" optionLabelPath="content.title" }}
輸出 http://emberjs.jsbin.com/jodaqumoba/1/edit?html,css,js,output
我的要求是組合框改變時間,我怎麼能叫下面提交功能
App.ComboBoxRoute = Ember.Route.extend({
model: function() {
return posts;
},
actions: {
submit: function() {
textId = document.getElementById("emnn");
textId = textId.value;
alert(textId);
}
}
});