Failed to read the 'responseText' property from X?
发布于 5 年前 作者 yinming 13189 次浏览 来自 官方Issues

请求接口后出现以下的错误,但是能正常请求接口,我使用的是uniapp的uni.request发送的请求

Uncaught DOMException: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ‘’ or ‘text’ (was ‘json’)

1 回复

你好,将json修改成text试试

回到顶部