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

ajax 跨域调用问题 #8

Closed
william-zheng opened this issue Apr 23, 2016 · 4 comments
Closed

ajax 跨域调用问题 #8

william-zheng opened this issue Apr 23, 2016 · 4 comments

Comments

@william-zheng
Copy link

如果需要访问的ajax地址只能使用jsonp的形式访问,那么返回的数据形式就是callback(data),需要如何处理?

@xtuhcy
Copy link
Owner

xtuhcy commented Apr 23, 2016

可以用AfterDownload,通过字符串处理将callback()去除

@xtuhcy xtuhcy closed this as completed Apr 25, 2016
@william-zheng
Copy link
Author

这两天有其他的事,回复晚了,使用afterdownload是可以的,但是对于使用@Ajax注解的字段,好像调用不到afterdownload组件,我就自己把源码修改了,但是不知道是不是我用的方式不对。

@xtuhcy
Copy link
Owner

xtuhcy commented Apr 27, 2016

我也在想其他方式实现jsoup,你可以pull request我看看你的方式

@xtuhcy xtuhcy reopened this Apr 27, 2016
@xtuhcy
Copy link
Owner

xtuhcy commented Apr 28, 2016

在1.1.1-SNAPSHOT版本中已经支持jsonp,直接调用ajax和jsonbean就能天然支持,不需要任何改动

@xtuhcy xtuhcy closed this as completed Apr 28, 2016
xtuhcy pushed a commit that referenced this issue Jul 6, 2018
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