前端发送表单数据(POST)

第一种

  • 安装qs
npm install qs --save

 第二种

  mounted() {
    const params=new URLSearchParams();
    //设置表单数据
    params.set('currentPage','0');
    params.set('size','1')
    axios.post('http://localhost:9000/permissionList',params)
    .then(res=>{
      console.log("权限",res.data.data)
    })
  }

猜你喜欢

转载自blog.csdn.net/m0_53286358/article/details/131893451