this 实质上是一种绑定(binding)机制,只关乎函数被调用时所处的 上下文(context),而不关心它在哪里被定义……绑定的形式有:被new过的函数实例,那么函数里的this绑定的就是这个实例对象本身;
函数是被 call 或者 apply 调用,那么 this 绑定的是第一个参数;
...
分类:
Web程序 时间:
2014-11-21 20:25:06
阅读次数:
262
1 //用add方法替换sub方法 2 function add(a,b){ 3 console.log(a+b) 4 } 5 function sub(a,b){ 6 console.log(a-b) 7 } 8 add.call(sub,3,1); 9 10 //c1的方法放到c2上执...
分类:
Web程序 时间:
2014-11-21 20:13:52
阅读次数:
176
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:59
阅读次数:
230
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:20
阅读次数:
288
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:43:13
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:59
阅读次数:
324
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:40
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:41:13
阅读次数:
240
参考官方解决方法:http://nz.php.net/manual/en/curl.installation.php1、php安装目录下的ext文件夹下面是否有php_curl.dll文件,然后右键->属性->详细信息,查看版本号是否和PHP版本一致;2、php.ini文件;extension=ph...
Most threads call pthread_exit() implicitly on return from the thread start routine.
Besides, pthread_exit() also can be used to terminate the initial process thread in main(),
leaving other threa...
分类:
其他好文 时间:
2014-11-21 14:23:22
阅读次数:
167