测试:页面代码:JQuery代码:$().ready(function(){for (var i = 0; i < 3; i++) {$("input[type='button']").click(function(){alert("aaaa");});}}alert("aaaa")会执行三次,在事...
分类:
Web程序 时间:
2014-09-12 18:49:33
阅读次数:
176
前面关注的地方都是Netty采用的流水线处理方式的组织方式,ChannelHandler如何管理,通道状态,通道事件等这些上层的架构设计,那么Netty中如何实现诸如套接字绑定,连接,关闭等这些底层的操作呢?不能只顾着套用API写程序,却对细节不求甚解。这里大致追踪下OIO模式下Channel中套接字绑定的实现,(NIO以后分析)其实逻辑都是一样的,只是在线程模型的地方时不同的。
大致过程如下(...
分类:
Web程序 时间:
2014-09-12 17:10:13
阅读次数:
175
配置php网站的时候,经常会在页首出现Warning: session_start() [function.session-start]: Cannot send session cache limiter,也不影响页面打开。Warning: session_start() [function.se...
分类:
其他好文 时间:
2014-09-12 16:56:13
阅读次数:
174
一般来说在header函数前不能输出html内容,类似的还有setcookie() 和 session 函数,这些函数需要在输出流中增加消息头部信息。如果在header()执行之前有echo等语句,当后面遇到header()时,就会报出 “Warning: Cannot modify header ...
分类:
其他好文 时间:
2014-09-12 16:48:03
阅读次数:
131
ubuntu下mysql默认只能从本地连接的解决方法sudo gedit /etc/mysql/my.cnf修改一个字段bind-address = 127.0.0.1—>bind-address=xxx.xxx.xxx.xxx(你的IP)(From: http://hi.baidu.com/vin...
分类:
数据库 时间:
2014-09-12 14:58:23
阅读次数:
322
打印机服务器(Host):HPLaserJ1020激光打印机,Server2003OS,32bit本机:Win764Bit一直安装不成功,参考下面文章,解决:(原文地址:http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/cannot-connect-to-network-printer-from-windows-7/256167d6-d6b..
最新的hadoop2.5 安装目录做了一定修改,安装变得稍微简单一点
首先安装准备工具
$ sudo apt-get install ssh
$ sudo apt-get install rsync
配置ssh
$ ssh localhostIf you cannot ssh to localhost without a passphrase, execute the...
分类:
其他好文 时间:
2014-09-10 19:34:21
阅读次数:
201
Zen Cart 138 在PHP5.3环境下出现的Fatal error: Cannot redeclare date_diff() in includes/functions/functions_general.php错误的解决方法原因是在这个文件中已存在函数:date_diff()了,此时,我...
分类:
Web程序 时间:
2014-09-10 19:22:20
阅读次数:
212
configure:?error:?xml2-config not found. Please check your libxml2 installation. yum install libxml2-devel configure:?error:?Cannot find OpenSSL’s yum install openssl-devel configure:?error:?...
分类:
Web程序 时间:
2014-09-10 16:02:50
阅读次数:
245
[persistence/sql-map-.xml]; nested exception is java.io.FileNotFoundException: class path resource [sql-map-config-2.dtd] cannot be opened because it does not exist at org.springframework.beans.fac...
分类:
数据库 时间:
2014-09-10 12:49:40
阅读次数:
402