的成功,我想请求与AJAX(没问题)的东西,我会得到普通的HTML回来,看起来像这样
<div> abc </div>
<div> def </div>
现在我想做$.each
通过HTML元素收到了AJAX的成功部分。
$(document).ready(function() {
$("#someButton").click(function() {
$.ajax({
url: '/Cens/ored',
dataType: 'html',
success: function (data) {
}
});
});
});
我该怎么做?
所以你没有尝试任何东西?即使是显而易见的'$(data).each(' – Musa 2012-08-06 02:43:21