當前位置:編程學習大全網 - 編程軟體 - iview menu導航菜單 on-select怎麽使用?

iview menu導航菜單 on-select怎麽使用?

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");}

})。

  • 上一篇:iOS開發培訓都有哪些課程
  • 下一篇:編程考級有用嗎?
  • copyright 2024編程學習大全網