ion-infinite-scroll无限滚动问题。我在模板中添加标签竟然报错??
在angularjs中添加<ion-infinite-scroll>标签竟然报错,请问这是为什么???
HTMl:
<script src="../../mine/userinfo/userinfo.js"></script>
<ion-header-bar class="bar-positive">
<div class="buttons">
<button class="button button-icon ion-android-arrow-back" ng-click="go(-1)" type="button">
</button>
</div>
<h1 class="title" style="color: #FFFFFF;font-weight: bold">
图层列表
</h1>
<div class="buttons">
<button class="button" ng-click="addLayerlist()">新建</button>
<button class="button" ng-click="seaLayerlist()"><i class="icon ion-search"></i></button>
</div>
</ion-header-bar>
<ion-content scroll="false" class="map-panel" style="background-color: #f5f5f5;">
<ion-list style="padding:0 1px 0">
<div class="padding" ng-repeat="item in layerList">
<ion-item class=" padding" >
{{item.MC}}
<div style="float: right">
<!--<i class = "icon ion-ios-eye" style="margin: 10px" ng-click="showLayer(item.ID)"> {{item.STATUS?"显示":"隐藏"}}</i>-->
<i class="icon ion-android-delete" style="margin: 10px" ng-click="delLayer(item)"> 删除</i>
</div>
</ion-item>
</div>
<ion-infinite-scroll ng-if="baseConf.index<baseConf.countPage" on-infinite="loadMoreLayer()" distance="1%"></ion-infinite-scroll>
</ion-list>
<empty-info ng-if="!layerList.length"></empty-info>
</ion-content>
报错::
ionic.bundle.min.js:150 TypeError: Cannot read property 'isNative' of null
at link (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:472:272)
at ja (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:114:35)
at n (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:99:220)
at g (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:92:140)
at g (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:92:157)
at n (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:99:165)
at g (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:92:140)
at n (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:99:165)
at g (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:92:140)
at g (http://localhost:63342/TH.DTJ.AndroidAppClient/assets/www/libs/ionic/js/ionic.bundle.min.js:92:157) <ion-infinite-scroll on-infinite="loadMore()" distance="1%">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了!!竟然是标签 scroll="false"