Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response 返回html的问题 #16

Closed
dhui68 opened this issue Jun 3, 2020 · 5 comments
Closed

response 返回html的问题 #16

dhui68 opened this issue Jun 3, 2020 · 5 comments

Comments

@dhui68
Copy link

dhui68 commented Jun 3, 2020

页面请求时如果有跳转地址,没有处理返回是html的情况,导致页面空白

@karosLi
Copy link
Owner

karosLi commented Jun 11, 2020

ok,有demo可以调试吗

@karosLi
Copy link
Owner

karosLi commented Jun 15, 2020

你好,我补充了下ajax获取html文本的demo,目前是可以获取到的,你使用的是最新的版本吗
image

@dhui68
Copy link
Author

dhui68 commented Jun 16, 2020

你好,我补充了下ajax获取html文本的demo,目前是可以获取到的,你使用的是最新的版本吗

image

看见了你的处理方式是通过取到div,然后设置innerText ,其实我使用hook ajax方式,是为了解决未知页面情况下,进行拦截请求,所以这种情况div是不确定的,有些场景可以使用document.write(xhr.responseText)

@karosLi
Copy link
Owner

karosLi commented Jun 16, 2020

那你说的未知页面的场景是什么样的?

@karosLi
Copy link
Owner

karosLi commented Jun 21, 2020

可以试下新版本 1.1.2 看看,如果有问题,可以再次打开

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants