let res = await fetch({ url: `http://localhost:8888/api/public/v1/goods/detail?${'goods_id'}=${goodsId}` // data: { // goods_id: goodsId // } }); console.log('res:', res);
js GET请求url后面拼接字符串
猜你喜欢
转载自www.cnblogs.com/Antwan-Dmy/p/12934648.html
今日推荐
周排行