c# - 在 C# ASP.NET AJAX 中使用 $get

标签 c# javascript asp.net-ajax scriptmanager

$get('').value 在 ASP.NET AJAX 中有何用途?是不是和通常的C#的get、set属性一样的不同?

最佳答案

$get is a JavaScript "shortcut" function :

The $get shortcut function points to the Sys.UI.DomElement.getElementById JavaScript function which is defined as part of the ASP.NET AJAX client side library (which means you will need to include a ScriptManager on the page to be able to use it).

关于c# - 在 C# ASP.NET AJAX 中使用 $get,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1406838/

相关文章:

c# - 在 .NET 4.0 中将任务与 Parallel.Foreach 结合使用

JavaScript 字符串替换不起作用

jquery - Ajax从 Controller 获取对象到 View

javascript - jQuery - 防止跳转但遵循散列链接

c# - 在 asp.net 中使用隐藏代码在页面加载时显示弹出 div?

javascript - 从更新面板调用 javascript 不起作用

javascript - Json Url.Action 在新的 MVC 5 应用程序中失败

c# - 通过 AJAX 将数组传递给 mvc Action

c# - 无法接收放入套接字的数据(cpp中的recv)(java中的write())

c# - Mono 上的 MVC 查找 aspx 文件而不是路由