I saw this written in a piece of JavaScript, but I have never seen it before. Does anyone know?
js allows the use of _ 还有 $这类特殊字符命名的。所以,看到这类不要惊慌。underscore.js 和 lodash.js names in this style.
_ 还有 $
underscore.js 和 lodash.js
// 例如 var ___ = { radio:function(){ alert('radio') }, ck:function(){ alert('ck') } } //使用 __.radio(); __.ck()
Javascript tool libraries such as underscore or lodash~, you can take a look at the source code, it is relatively easy to understand
js allows the use of
_ 还有 $
这类特殊字符命名的。所以,看到这类不要惊慌。
underscore.js 和 lodash.js
names in this style.Javascript tool libraries such as underscore or lodash~, you can take a look at the source code, it is relatively easy to understand