开发者

jQuery with ajax:true parameter

$.getJSON('${userDetailsURL}', {
    Id :  "${user.id}",
    ajax : 'true'
},..... etc...

What is 开发者_StackOverflow社区ajax:'true' for? I couldn't figure it out.

Thanks a lot


The parameter containing the ajax:true part is the data being sent to the server.

My guess would be that the user is checking for the existence of ajax: true when the call is made so they can do something differently (or to verify) when the url is hit by an ajax call rather than directly (or through some other means).


It's a parameter that gets sent to the remote server in the query string.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜