首页 > 代码库 > angular 图片懒加载(延迟加载)

angular 图片懒加载(延迟加载)

github 原文 https://github.com/Treri/me-lazyload

me-lazyload

angular 的图像资源延迟加载指令

例子(Demo)

演示网站(Demo Site):http://treri.github.io/me-lazyload  

基本用法(Basic Usage)

1. 将me-lazyload.js 依赖注入.( include me-lazyload.js as dependence.)

var app = angular.module(‘myApp‘, [‘me-lazyload‘])

2.将src属性替换为 lazy-src. (instead src with lazy-src.)

angular 图片懒加载(延迟加载)