如何将注释的代码折叠

// #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

 

posted @ 2020-08-18 11:09  全情海洋  阅读(1282)  评论(0编辑  收藏  举报