3 ms·
Rendering JSON into HTML has nothing to do with XMLHttpRequest. Funny that you mention jQuery. When jQuery was hugely popular, people used it to make XMLHttpRe
by kccqzy 2y ago
Rendering JSON into HTML has nothing to do with XMLHttpRequest.
Funny that you mention jQuery. When jQuery was hugely popular, people used it to make XMLHttpRequests that returned HTML which you then set as the innerHTML of some element. Of course being jQuery, people used the shorthand of `$("selector").html(...)` instead.
In the heyday of jQuery the JSON.parse API didn't exist.