javascript - jQuery Datalink - Data linking -


I was trying jQuery and saw some strange

My items get this extra asset and I was wondering what the reason for it was that I first thought that this was my fault, but I saw that their demo page does the same thing

This is Jason's result of my items:

  [[propertyName]: "" "" "" "" "" "" "" "" "" "", "Control" type: "number", "jquery1274021322131": 9}, "" "," control "," "text", "jQuery1274021322131": 6}, {"propertyName": "value" PropertyName ":" description "," control type ":" textarea "," jQuery1 274021322131 ": 12}]  

The property I am talking about is" jQuery1274021322131 ".

When you insert a DOM object in a jQuery object (i.e. $ (" # SomeElementID ") ), jQuery is a special" extension " Property I believe this property is internally used by the library so that it can assist in caching the element in its internal array for quick access.

Digging through the library, this is the code that produces that value and how it is used internally:

  var expando = "jQuery" + Now (), UUID = 0, Window + {}; Calculate a unique ID for JQuery.extend ({cache: {}, data: function (amm, name, data) {elem = elem == window window data: elem; var id = elem [expando]; // If (! Id) id = elem [expando] = ++ uuid; // If we are trying to use // manipulate it, then only generate data caches (name and jQuery.cache [ Id]) Stop the overwriting of named .cache [id] = {}; // with undefined values ​​if the data (!! == undefined) jQuery.cache [id] [name] = data; // Named cache data , Or ID element returns For the? JQuery.cache [id] [name]: id;}, // snipped  

Comments