什么是$之间的区别,并获得$发现在JavaScript中?

编程入门 行业动态 更新时间:2024-10-17 23:35:41
本文介绍了什么是$之间的区别,并获得$发现在JavaScript中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是谁才刚刚开始了解客户端脚本一个.NET程序员,我在想,有时你使用 $ GET('值')和 $找到('值')键,我发现,这些只是为的document.getElementById('值')和Sys.Application.findComponent('value'),分别。

I'm a .NET programmer who've just started to learn more about client side scripting, and I was wondering sometimes you use $get('value') and $find('value') and I've discovered that these are just shortcuts for document.getElementById('value') and Sys.Application.findComponent('value'), respectively.

不过,我还是不明白:什么是JavaScript中这两个函数之间的区别?究竟什么是调用时查找/检索?

However, I still don't understand: what is the difference between these two functions in JavaScript? What exactly are they looking up/retrieving when invoked?

先谢谢了。

推荐答案

$ GET &安培; $找到的快捷功能微软已经内置到他们的Ajax JavaScript库。

$get & $find are shortcut functions Microsoft has built into their Ajax JavaScript Library.

$ GET 是短期的标准JavaScript 的getElementById 功能。 $找到是短期的。NET的findComponent()功能。这不是一个标准的JavaScript功能,是专门针对微软的Ajax JavaScript库。

$get is short for the standard JavaScript GetElementById function. $find is short for .Net's findComponent() function. This is not a standard JavaScript function and is specific to Microsoft's Ajax JavaScript library.

马特Berseth做的分歧和放一个伟大的写了;用法here.

Matt Berseth does a great write up of the differences & usages here.

更多推荐

什么是$之间的区别,并获得$发现在JavaScript中?

本文发布于:2023-11-22 14:44:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1617859.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区别   JavaScript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!