Skip to content Skip to sidebar Skip to footer

What Exactly Is .params And What Does It Do?

I'm currently working my way through Learning jQuery 4th edition, where i am given an example of a form which accepts one text input.The form, when submitted, searches through the

Solution 1:

See the value in signatures[0] - note that it is arbitrary data from a JSON request [for the jQuery API documentation]. That is, ".params" doesn't do anything, except function as normal property access. Despite syntax highlighting, it is not a reserved word and has no special meaning.


Here is some relevant extracted JSON to illustrate the point:

"signatures":[
  { //  <-- i.e. signatures[0]"added":"1.8",
    "params":[    // <-- property called "params", which represents an array//     of objects that describe the given parameter
      {"name":"selector","type":"Selector",..}
    ],
    ..
  },
  ..
]

Post a Comment for "What Exactly Is .params And What Does It Do?"