前端 restful风格传参 菜鸡程序员 2022-03-16 364 阅读1分钟 this.$axios.get('/api/common/list/'+this.name+'/'+this.mark) //重点,直接把参数拼接到请求地址后面,不需要参数名字!! .then(data=> { }).catch(error=> { });