AngularJS 无限滚动指令 ngInfiniteScroll

码农软件 · 软件分类 · AngularJS 扩展 · 2019-03-16 23:11:54

软件介绍

ngInfiniteScroll 是一个 AngularJS 的扩展指令,实现了网页的无限滚动的功能,也就是相当于页面滚动到最底部的时候自动加载更多内容。

使用方法:

1. 引入 JS 库

<script type='text/javascript' src='path/to/jquery.min.js'></script>
<script type='text/javascript' src='path/to/angular.min.js'></script>
<script type='text/javascript' src='path/to/ng-infinite-scroll.min.js'></script>

2. 加载模块

angular.module('myApplication', ['infinite-scroll']);

3. 定义要实现滚动的元素

<div infinite-scroll="myPagingFunction()" infinite-scroll-distance="3"></div>

然后实现 myPagingFunction() 函数即可。

本文地址:https://www.codercto.com/soft/d/1512.html

PHP Cookbook

PHP Cookbook

Adam Trachtenberg、David Sklar / O'Reilly Media / 2006-08-01 / USD 44.99

When it comes to creating dynamic web sites, the open source PHP language is red-hot property: used on more than 20 million web sites today, PHP is now more popular than Microsoft's ASP.NET technology......一起来看看 《PHP Cookbook》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具