get请求方法 fetch('http://localhost/get.php?a=1&b=2',{ method:'get', }) 这里进行格式转换需要return .then(res=> res.text(