What is the meaning of $ H in Javascript / JQuery?

This jsfiddle.net example includes $H:

new Request.JSON({
    url: '/echo/json/',
    data: {
        json: JSON.encode({
            text: 'some text',
            array: [1, 2, 'three'],
            object: {
                par1: 'another text',
                par2: [3, 2, 'one'],
                par3: {}
            }
        }),
        delay: 3
    },
    onSuccess: function(response) {
        show_response(response, $('post'));
    }
}).send();

show_response = function(obj, result) {
    $H(obj).each(function(v, k) {
        new Element('li', {
            text: k + ': ' + v
        }).inject(result);
    });
    result.highlight();
};

I can not find the meaning / function of $ H. Can someone clarify?

+3
source share
2 answers

$ H refers to mootools, not jQuery. You will find the document here (page 67). Excerpt below:

$ H is a shortcut to initialize a hash instance. Usage:
$ H (object) Example: var fooHash = $ H ({foo: 'bar'}); When you use it: it's just a shortcut to the new Hash (obj) that returns a Hash instance

+9
source

$H - , ( ). JS $; , ( " " , ).

$H , / $( , , ) - .

+2

Source: https://habr.com/ru/post/1784265/


All Articles