如何将注释的代码折叠


// #region
  // methods:{
  //   addO(q){
     
  //     //发送请求前,在搜索中
  //       this.isFirst= false
  //       this.isLoading= true
  //     axios({
  //       url:"https://api.github.com/search/users",
  //       method:'get',
  //       params:{
  //           q
  //       }
  //     }).then((res)=>{
  //      let newArray=  res.data.items.map(item=>({name:item.login, url:item.url, imgUrl: item.avatar_url, id:item.id}))
  //       // console.log(newArray)
  //      this.users = newArray
  //      //发送请求后,更改状态
  //       this.isLoading = false

  //     }).catch((error)=>{
  //       console.log(error.message)
  //       //发送请求有误,更改状态
  //       this.errMsg = error.message
  //       this.isLoading = false
  //     })
  //   }
  // }
// #endregion

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM