on-select 作用在<Menu> 標簽組件上則
template上這麽寫
<Menu .on-select="turnUrl">
script中這麽寫
export default {
methods: {
turnUrl(name) {name是 <Menu-item name="timestamp">時間戳</Menu-item> 的name我的router有 /timestamp 於是使用了vue-router中的編程路由進行動態跳轉
this.$router.push(name)?}
妳說的是 javascript 的 textbox(input type="text") 的onselect
<aspx ....省略 runat="server" onselect="javascript:myOnSelect()" /><script>
function myOnSelect()
{alert('SELECTED!');
}</script>
另外api中說有參數record,參數表示
function initComboboxesValues(){
alert("1");
$('fbookCood').combobox({
onSelect:function(record){
alert(record);
alert("2");}
})。