This handler prevents the default event (submitting the form) from being fired, sets the value of the extra ajax argument to 1, and makes an ajax Request using the original form for the URL and data.
这个处理程序阻止默认事件(提交表单)触发,将额外的ajax参数的值设置为1,使用原始表单发出一个ajax请求以获取URL和数据。
To reference the value captured from the original request, go to the URL definition where a dummy request was sent, and check in the Data field for the appropriate value; see Figure 11.
为了引用来自原始的请求中获取的值,您可以切换至url定义,会向这个定义发送一条请求,并检查Data区域以得到合适的值,如图11所示。
If the data is not modified by your filter, then the original data must be returned so that subsequent plugins can continue to modify the value if necessary.
如果你的filter不修改数据,那么应当返回原始数据,这样,如果必要,其余的插件可以继续修改数据。
应用推荐