Vue的created的使用示例
生活随笔
收集整理的這篇文章主要介紹了
Vue的created的使用示例
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Vue函數執行之后調用另一個函數
在鉤子函數created中我們需要執行定義好的select_book函數,來執行筆記本的查詢,在頁面信息展示之前將數據更新。
// 查詢筆記本select_book(){this.user_id = sessionStorage.user_idthis.$axios({url: this.$settings.HOST + "note/option_note_book/",method: "get",params: {"user_id": this.user_id}}).then(res=>{this.note_book_name_list = res.data;this.tableData = res.data})}, created: function (){this.select_book()}總結
以上是生活随笔為你收集整理的Vue的created的使用示例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: POS协议解析
- 下一篇: android使用popupwindow