JavaScript 基础 Page 13(1) 的属性:async,charset,defer='defer',language已废,src,type(2)null 是一个空值,是一个特殊对象; undefined 表示空值,它不是对象 是未定义的意思;undefined==null 返回tru....
分类:
编程语言 时间:
2015-01-15 20:03:33
阅读次数:
260
需要的Jar包(String3.2) com.springsource.net.sf.cglib-2.2.0.jar // 作用于cglib方式的动态代理 com.springsource.org.aopalliance-1.0.0.jar com.springsource.org.aspectj....
分类:
编程语言 时间:
2015-01-15 12:27:28
阅读次数:
336
async.js 原理解析
暂时只是针对常用的Waterfall方法
做node开发,你不能逃避的一个组件:async.js. 神奇之处在于让你用看上去同步的方式写出异步的代码,把我们从各种回调嵌套中解脱出来,程序逻辑一目了然.以下简要对async的each和waterfall方法的实现原理做介绍.
async.each
先看使用方法
async.waterfall([
...
分类:
Web程序 时间:
2015-01-15 11:06:29
阅读次数:
272
我们都知道,jquery提交表单数据可以用ajax进行提交,例如:
$.ajax({
url:"",
async:false,
type:"POST",
data:"apname="+$("#apname").val()+"&basemac="+$("#basemac").val()
});
后台可以用apname和basemac两个键来取两个键对应的值。
但是,如果表单控件的...
分类:
Web程序 时间:
2015-01-14 17:58:49
阅读次数:
130
1.内容观察者ContentObserver如果ContentProvider的访问者需要知道ContentProvider中的数据发生了变化,可以在ContentProvider 发生数据变化时调用getContentResolver().notifyChange(uri, null)来通知注册在...
分类:
移动开发 时间:
2015-01-14 00:42:24
阅读次数:
327
Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a met...
分类:
移动开发 时间:
2015-01-13 14:08:29
阅读次数:
330
Stephen Cleary Download the Code Sample This is the second article in a series on combining async and await with the established Model-View-ViewModel ...
分类:
移动开发 时间:
2015-01-13 10:27:56
阅读次数:
256
AOP原理:AOP分为:JDK动态代理和CGLIB代理静态代理:由程序员创建或特定工具自动生成源代码,再对其编译。在程序运行前,代理类的.class文件就已经存在了。 注意: 目标代理类不能是final 字段、方法、类动态代理:在程序运行时,运用反射机制动态创建而成。JDK动态代理实现:必...
分类:
编程语言 时间:
2015-01-13 10:13:16
阅读次数:
189
CUDA 程序运行时CPU 100%的问题有点让人头痛,在实验过程中调用了kernel函数后,再调用cudaMemcpyAsync,但发现在还有会到block在这个所谓的async api,strace 跟了一下,发现99.999%都是
clock_gettime(CLOCK_MONOTONIC_RAW, {2461, 485666623}) = 0
于是实然有了一个灵感,为什么我不写一个...
分类:
其他好文 时间:
2015-01-12 19:23:50
阅读次数:
276
我在应用里边present一个很简单的Controller感觉总有个零点几秒的延迟,有的时候更严重,点一次根本没有跳转,然后随便再点一下才会跳,在网上搜了一下,找到一个方法可以解决这种问题:
dispatch_async(dispatch_get_main_queue(), ^{
MessagePushSetViewController * vc =...
分类:
移动开发 时间:
2015-01-12 11:36:57
阅读次数:
2077