<?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