题解 | #接口#
接口
https://www.nowcoder.com/practice/8f91b606181746558e8a398e513d1078
const _api = string => { // 补全代码 if(string.includes('get?')){ return data } else { const query = string.split('to=')[1] data.forEach(item=> item.name = query) } }
接口
https://www.nowcoder.com/practice/8f91b606181746558e8a398e513d1078
const _api = string => { // 补全代码 if(string.includes('get?')){ return data } else { const query = string.split('to=')[1] data.forEach(item=> item.name = query) } }
相关推荐