What does the value of $ in javascript function name mean?

GWT displays the codes as follows:

function com_mycompany_mywebapp_client_CTest_$$init__Lcom_mycompany_mywebapp_client_CTest_2V(){
this$static}

What does the meaning of $ mean, or is it just another character, like an underscore? Will this_static mean the same thing?

+3
source share
2 answers

Nuthin. This is just a character. Think of it as an S with a stick stuck in it.

+6
source

A dollar sign has been added for use in machine characters so that they do not interfere with hand-written characters. But syntactically, it is just like underlining; it does not mean anything special.

, $() , document.getElementById(), . , Prototype jQuery, $() - ( , jQuery jQuery.noConflict()). , , jQuery, :

var $links = $('a');

, - . . JavaScript .

+3

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


All Articles