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.
精彩评论