日期:2014-05-16 浏览次数:20662 次
function html($select,$name){
global $pagecon;
$a='1';
$b='2';
$result='';
$result.='<ul id="thumbs">';
while($row=$select->fetch()){
$result.='<li class="'.$name.'isotope-item">';
$result.='<img src="ztImg/'.$row['riseimg'].'"width=235 height=300 alt=""//></div><ul>';
$result.='<h3 class="title">'.$row['ztname'].'</h3>';
$result.='<span class="category">'. $row['zttype'].'</span>';
$result.='<p class="intro">推荐日期:'.$row['zttime'].'</p></div></li>';
}
$result.='</ul>';
$result.='<center><h4>'.$pagecon.'</h4></center>';
return $result,$a,$b;
}
return "$result,$a,$b";
success:function(json){
a = json.split(',');
function html($select,$name){
global $pagecon;
$a='1';
$b='2';
$result='';
$result.='<ul id="thumbs">';
while($row=$select->fetch()){
$result.='<li class="'.$name.'isotope-item">';
$result.='<img src="ztImg/'.$row['riseimg'].'"width=235 height=300 alt=""//></div><ul>';
$result.='<h3 class="title">'.$row['ztname'].'</h3>';
$result.='<span class="category">'. $row['zttype'].'</span>';
$result.='<p class="intro">推荐日期:'.$row['zttime'].'</p></div></li>';
}
$result.='</ul>';
$result.='<center><h4>'.$pagecon.'</h4></center>';
return $result.'--'.$a.'--'.$b;//用--来连接返回
}
function getData(page){
alert('ok');
$.ajax({
type:'post',
url:'action/test.php',
data: {'pageNum':page-1},
beforeSend:function(){
$("#sss ul").append("<li id='loading'>loading...</li>");
},
success:function(json){
var arr=json.split('--');