相反,我得到这样的东西......
...代码
$(document).ready(function(){
$.get( "/labeling/refresh", function( data ){
// success callback
console.log(data);
}, function (error){
//error callback
console.log(error);
});
});
答案 0 :(得分:4)
您没有关闭div标签
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo '<div id="item">';
echo "test";
echo '</div>'; //here
}
}