Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
483 views
in Technique[技术] by (71.8m points)

进行封装后的接口,如何把页面中的参数拼接到url中?

这是封装好的get和post请求
image.png


这是把封装好的接口进行导出
image.png


全部内容
image.png


在页面中具体使用某一个请求
image.png


在main.js中进行挂载
image.png

那么如何把页面中的参数拼接到URL中呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

定义的时候加个参数,用的时候参数传进去。
image.png
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...