What do the {and} internal parameters mean?
It is an object literal notation. It creates an object with the property lhs
set to val
.
This is another way to do the following
var obj = new Object();
obj.lhs = val;
$.ajax(obj);
In jQuery, many functions take an options object, which is just a regular object with various properties set to define how the function acts.
source to share
This is an object literal (better known as a JSON object):
JSON (JavaScript Object Notation) is a lightweight data interchange format. It is easy for a person to read and write. Easy for machines to analyze and generate. It is based on a subset of the JavaScript Programming Language, ECMA-262 Standard 3rd Edition - December 1999. JSON is a text format that is completely language independent, but uses conventions that are familiar to programmers of the C-family of languages, including C, C ++, C #, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data interchange language.
source to share