时间:2021-07-01 10:21:17 帮助过:6人阅读
$.ajax({
type:"POST",
url:"class.php",
data:"bid="+bid,
success:function(data){
$("#xlm2").html("分类:"+data);
}
});
while($r=$cms->fetch($mesql)){
$classname.= $r[classname];
}
echo $classname;
$.ajax({
type:"POST",
url:"class.php",
data:"bid="+bid,
dataType: "json",
success:function(data){
$("#xlm1").html("");
$("#xlm2").html("分类:"+data);
}
});
while($r=$cms->fetch($mesql)){
$classname.= $r[classname];
$img= $r[img];
}
echo json_encode(......);