When looking at other dev's javascript code, i often see a JSON object/fn getting used to parse JSON? Where does this object come from? -
Using the object / FN below I think coming from the global realm, what makes this object?
function set_log () {$ ("pre.code.json"). Attr ("title", "Click to inspect the browser debugger: console.log ()"); $ ("Pre.code.json") CSS ("cursor", "indicator"); $ ("Pre.code.json") Click (function () {var code = $ (this) .find ("code"); console.log (code.html ()); console.log (JSON.parse (Code.html ());} ); } JSON object is a part of the implementation of JavaScript language, mostly in modern web browsers. You can read more about this here: Keep in mind that earlier browsers do not support this object. The above link is a list of supported versions. Actually, IE 7 and below are the worst offenders.
Comments
Post a Comment