首页 > Web开发 > 详细

php--yii框架中的ajax分页

时间:2016-03-29 10:09:28      阅读:259      评论:0      收藏:0      [点我收藏+]
<?php $this->beginBlock(‘abc‘); ?>
$(document).on(‘click‘,‘.pagination a‘,function(e){
e.preventDefault();
var url=$(this).attr(‘href‘);
$.get(url,function(msg){
//alert(msg);
$(‘#lists‘).html(msg);
});
});
<?php $this->endBlock();  $this->registerJs($this->blocks[‘abc‘], View::POS_END); ?>

php--yii框架中的ajax分页

原文:http://www.cnblogs.com/bjfy/p/5331729.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!