Vue框架知識點

1、vue框架用axios完成ajax異步請求vue

用法:this.axios().then().catch()
       如
          this.$axios({
               URL:"服務器地址",
               methods:'請求方式',
               params:{},
               data:{},
               header:{}
          }).then( responsed =>{

          }).catch(err=>{

          })

2、vue生命鉤子加載順序
一、首先加載new Vue()
二、beforeCreate()
三、create()
四、beforeMount()
五、Mount()
六、beforeUpdate()
七、Update()
八、beforeDestroy()
九、Destroy()ios

相關文章
相關標籤/搜索