此代码之间是否有任何区别
$.get('http://www.google.com/', function(data) {
var html = $('<div></div>').html(data.responseText).children();
});
和此代码
$.get('http://www.google.com/', function(data) {
var html = $(data.responseText);
});
我应该使用什么以及为什么?
提前致谢。