工具插件

angular.js常用插件:

圆形进度条

使用心得:方便定制、简易使用、效果不错

https://github.com/crisbeto/angular-svg-round-progressbar

手势插件

使用心得:便于在跨平台App使用、修改

angular中filter使用和缓存jsonp数据

angular缓存jsonp数据:

参考自:https://www.chedanji.com/angularjs-cache-for-jsonp/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
angular.module('app',[])
.factory("myCache", function($cacheFactory){
return $cacheFactory("me");
})
.controller("AppCtrl", function($http, myCache){
var app = this;
app.load = function(){
$http.get("apiurl",{cache:myCache})
.success(function(data){
app.data = data;
})
}
app.clearCache = function(){
myCache.remove("apiurl");
}
})
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×