what does $ mean here in JQuery

后端 未结 4 1736
甜味超标
甜味超标 2021-01-28 05:46

In the following

var obj = { one:1, two:2, three:3, four:4, five:5 };
    $.each(obj, function(i, val) {
       console.log(val);
    });

what

4条回答
  •  粉色の甜心
    2021-01-28 06:09

    $ is an alias for jQuery object/function. It's acts as a namespace under which all jQuery functions are stored.

提交回复
热议问题