当我们写下载界面的时候,需要向用户展示每秒下载多少KB,这个时候就需要计算速度。如下: 我用的是AFNetworking来做下载的,我们拿AFHTTPRequestOperation来举列,AFHTTPRequestOperation中有个方法: [html] view plain copy - ( ...
分类:
移动开发 时间:
2018-05-16 15:27:49
阅读次数:
190
第一种: Dao层的方法 [java] view plain copy <span style="font-size:12px;">Public User selectUser(String name,String password);</span> [java] view plain copy [ ...
分类:
其他好文 时间:
2018-05-16 10:56:30
阅读次数:
250
源自:http://www.cnblogs.com/yuanchenqi/articles/5997456.html 1.同源策略机制 所谓同源是指域名,协议,端口相同,浏览器界面A想访问界面B,就要保证同源。如http://127.0.0.1:8888 2.jsonp(json+padding,p ...
分类:
其他好文 时间:
2018-05-15 22:43:07
阅读次数:
183
<input type="file" id="file{{$index}}" class="file{{$index}}" ngf-select ngf-change="cacScriptEditVm.views.uploadAttach($files)" multiple/> <div class ...
分类:
Web程序 时间:
2018-05-15 21:08:08
阅读次数:
238
HW2: input a sentence, output an ACG icon 3 target: trains from front view, side views. So that the output would be the average of the three pictures. ...
分类:
其他好文 时间:
2018-05-15 00:27:38
阅读次数:
356
butterknife 注解框架的问题 删除项目中的有关butterknife 的 apply plgin、classpath 字段 把注解框架改为最新版本 implementation 'com.jakewharton:butterknife:8.8.1' annotationProcessor ...
分类:
移动开发 时间:
2018-05-14 22:58:50
阅读次数:
1134
设置Run Designer=>Views=> OptionsSelection下面的: EnableAppearanceFocusedCell = False,//鼠标移开,失去焦点,仍然保持其原有的样式风格 EnableAppearanceHideSelection = False//控制点击选 ...
分类:
其他好文 时间:
2018-05-14 19:03:35
阅读次数:
275
流程:1、浏览器访问http://127.0.0.1:8002/user/login/2、urls.py中path(‘login/‘,views.login,name="login"),执行views下的login函数3、URL请求为GET,跳转到returnrender(request,‘user/login.html‘)4、输入用户名,密码,
分类:
其他好文 时间:
2018-05-14 15:44:21
阅读次数:
164
1 # classtop_urls.py 2 # ————————64PerfectCRM实现CRM课程排名详情———————— 3 from django.conf.urls import url 4 from bpm.coursetop import coursetop_views 5 urlp ...
分类:
其他好文 时间:
2018-05-14 00:08:50
阅读次数:
218
前几天把系统弄崩溃了,弄了好久也没弄好,索性直接装18.04,下面是安装chrom浏览器的步骤,网络上照着16.04安装的,应该是一样的 启动终端。 输入以下命令: sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P ...
分类:
系统相关 时间:
2018-05-13 21:35:35
阅读次数:
3089