ASP.Net Ajax $ find()Jquery等效

pau*_*mag 11 asp.net ajax jquery

是否有一个JQuery相当于ASP.Net Ajax的$ find()函数?

$() != $find()
Run Code Online (Sandbox Code Playgroud)

Bri*_*ins 8

从那以后就没有$find返回与DIV元素相关的AJAX组件,而不是DOM元素.您可以构建自己的插件,快捷方式查找方法.

Microsoft创建$find了一种将ASP.NET AJAX组件链接到DOM的方法.


Pet*_*dIt 2

没有 1to1 等价物,但你想要的是 $('selector')

查看有关不同选择器的文档

$find('MyComponent') would be $('#MyComponent')

$find('MyComponent',div) would be $(div).find('#MyComponent')
Run Code Online (Sandbox Code Playgroud)