开发者

Found elements in a string

开发者 https://www.devze.com 2023-01-27 21:53 出处:网络
Say I have this script $.get(\'test.html\', function(data){ //data }); How can I find a div with a specif开发者_开发技巧ic class inside data??Use data as the context argument to $(selector, contex

Say I have this script

$.get('test.html', function(data){ 
    //data
});

How can I find a div with a specif开发者_开发技巧ic class inside data??


Use data as the context argument to $(selector, context), like this:

$.get('test.html', function(data){ 
   $("div.someClass", data)
});
0

精彩评论

暂无评论...
验证码 换一张
取 消