void Main(){ int count=1000000; List list=new List(); for(var i=0;i list1=new List(); Stopwatch watch=new Stopwatch(); watch.Start(...
分类:
其他好文 时间:
2014-12-23 15:09:01
阅读次数:
164
总结的不错的Volley介绍:
Volley主页 https://android.googlesource.com/platform/frameworks/volley
http://www.youtube.com/watch?v=yhv8l9F44qo&feature=player_embedded
1. 什么是Volley
在这之前,我们在程序中需要和网络通...
分类:
其他好文 时间:
2014-12-23 00:19:09
阅读次数:
269
前些时候有使用过AngularJS一些时间,最大的感受就是Angular完全颠覆了我们开发Web应用的方式,自己被其许多耳目一新的设计思想所折服。首先想说的就是依赖注入(DI),这也意味着,你在使用某一个模块时,不需要去手动require()一下,你需要的模块会自己注入到的函数所在的作用域中,如:J...
分类:
Web程序 时间:
2014-12-22 22:41:21
阅读次数:
256
使用ng-repeat循环输出对象的时候出现如下错误:
Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: c in shopCount, Duplicate key: undefined:undefined
应该在循环是加以下...
分类:
其他好文 时间:
2014-12-22 12:59:55
阅读次数:
223
原库首页http://andyshora.com/angular-image-cropper.html根据项目的需求,要在Web上面裁剪图片,找到了这个可以用的AngularJs的库,涉及到了一些没有用到的知识。在这里做一下总结。1. JSHint原码里面有一些JSHint的warning, 要注意...
分类:
其他好文 时间:
2014-12-22 12:40:33
阅读次数:
225
Volley主页https://android.googlesource.com/platform/frameworks/volleyhttp://www.youtube.com/watch?v=yhv8l9F44qo&feature=player_embedded1. 什么是Volley在这之前,...
分类:
移动开发 时间:
2014-12-22 12:37:04
阅读次数:
208
使用$watch监控数据模型的变化
在scope 内置的所有函数中,用得最多的可能就是$watch 函数了,当你的数据模型中某一部分发生变化时,$watch 函数可以向你发出通知。你可以监控单个对象的属性,也可以监控需要经过计算的结果(函数),实际上只要能够被当作属性访问到,或者可以当作一个JavaScript 函数被计算出来,就可以被$watch 函数监控。它的函数签名为
$wa...
分类:
Web程序 时间:
2014-12-22 11:11:51
阅读次数:
193
Highchart折线图代码 $(function () {
var chartLine = new Highcharts.Chart({
chart: {
type: 'line',
renderTo: 'container2'
},
ti...
分类:
Web程序 时间:
2014-12-22 09:34:10
阅读次数:
2298
定义服务的多种方式:// factory方式angular.module('myApp', []).factory('UserService', function($http) { var current_user; return { getCurrentUser: fun...
分类:
Web程序 时间:
2014-12-22 00:50:06
阅读次数:
224
/** * Created by Answer1215 on 12/21/2014. */angular.module('app', []) .controller('FirstCtrl' , function(){ var vm = this; vm.messag...
分类:
Web程序 时间:
2014-12-21 23:28:14
阅读次数:
300