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情况下的beforeSend事件 #98

Open
xjh1230 opened this issue Oct 14, 2019 · 3 comments
Open

ajax情况下的beforeSend事件 #98

xjh1230 opened this issue Oct 14, 2019 · 3 comments

Comments

@xjh1230
Copy link

xjh1230 commented Oct 14, 2019

我的情况是, Remote data source 的情况下,在向服务端发送请求之前,需要先校验下用户的输入。没有找到相关的配置。我现在是修改了源码,手动在self.prop.xhr 赋值时候增加了beforeSend配置。 是我没找对地方吗?

@TerryZ
Copy link
Owner

TerryZ commented Oct 14, 2019

为什么需要校验用户输入?

@xjh1230
Copy link
Author

xjh1230 commented Oct 15, 2019

为什么需要校验用户输入?

比如用户没输入,或者输入字符超过n个后才发起请求

@TerryZ
Copy link
Owner

TerryZ commented Oct 15, 2019

嗯,这类的定制化需求,自行修改源码使用即可

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