简体   繁体   English

美元符号使用javascript方法

[英]dollar sign in javascript methods

Can someone explain the usage of the dollar sign here.. 有人可以在这里解释美元符号的用法。

var updateProgressDiv = $get('updateProgressDiv');

scroll down to the functions.. http://mattberseth.com/blog/2007/05/ajaxnet_example_using_an_updat.html 向下滚动到功能。.http: //mattberseth.com/blog/2007/05/ajaxnet_example_using_an_updat.html

它只是函数名称的一部分-JavaScript标识符中允许$,因此($ get)是完整的函数名称。

This is asp.net ajax shortcut: 这是asp.net Ajax的快捷方式:
$get Shortcut Method $ get快捷方式
Provides a shortcut to the getElementById method of the Sys.UI.DomElement class. 提供Sys.UI.DomElement类的getElementById方法的快捷方式。 This member is static and can be invoked without creating an instance of the class. 该成员是静态的,可以在不创建类实例的情况下被调用。

See more information about 查看有关的更多信息

$get is jQuery syntax for fetching an element. $ get是用于获取元素的jQuery语法。 It has nothing to do with C#. 它与C#无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM