这是我的标题代码:
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/user/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.yiilistview.js"></script>
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/user/bootstrap.css" rel="stylesheet" media="screen">
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/user/bootstrap.min.css" rel="stylesheet" media="screen">
列表视图代码:
<?php $this->widget('zii.widgets.CListView', array(
'id'=>'share-list',
'dataProvider'=>$model,
'template' => '{pager} {items} {pager}',
'itemView'=>'_analytics_view_feed',
));?>
我的javascript函数更新listview;
$.fn.yiiListView.update('share-list', {
data: {content_type:content_type,stype: stype},
beforeSend:function(){ },
complete:function(data){
url: '<?php echo Yii::app()->createUrl("FeedData/analytics");?>'
});
yiiscroller代码:
$(window).scroll(function () {
var data = $this.data('YiiScrollingLoader');
// If scrolled to the bottom of the page and nothing is loaded now
if (isScrolledBottom($this) && (data.currentRequest === undefined)) {
loadMore($this);
}
});
问题: 我收到以下错误: TypeError:数据未定义
if (isScrolledBottom($this) && (data.currentRequest === undefined)) {
&安培;滚动无效。