开发者

jQuery with ajax:true parameter

开发者 https://www.devze.com 2023-03-23 05:12 出处:网络
$.getJSON(\'${userDetailsURL}\', { Id :\"${user.id}\", ajax : \'true\' },..... etc... What is 开发者_StackOverflow社区ajax:\'true\' for? I couldn\'t figure it out.
$.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

精彩评论

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