设url为https://yungot.com/
求:向url中添加参数 ?page=1&limit=10 变成 https://yungot.com/?page=1&limit=10
解决方案:调用addUrlParams函数
解:addUrlParams({“page”: 1, “limit”: 10})
// url处理
function getRequestParams() {const requestParams = {};const url = location.search;if