测试:页面代码: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
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
标准的绑定: bind(type,[,data],fn)==>第一个参数是事件类型 第二个可选参数作为event.data 传递给事件对象的额外数据对象 第三个参数为用来绑定的处理函数 简写绑定事件: $('#panel h5.head').mouseover(function(){ }...
分类:
Web程序 时间:
2014-09-10 12:14:40
阅读次数:
298
主干部分 服务器端:socket—>bind—>listen—>accept—>close; 客户端: socket—>connect—>close; 按照上面建立连接后,就是进行数据的传输了。。。。 涉及主干函数如下: socket函数用于创建套接字文件标识号; bind函数用于套接字和地址的绑定...
分类:
系统相关 时间:
2014-09-10 09:33:13
阅读次数:
354
之前就一直受这个问题的困扰,在jQuery1.7版本之后添加了on方法,之前就了解过,其优越性高于live(),bind(),delegate()等方法,在此之前项目中想用这个来测试结果发现,居然动态生成的标签点击了没反应,而live方法却能够支持,于是乎到处查资料,问网友,结果找了好久在一篇文章中终于找到了答案。。。
jQuery 使用on绑定动态生成的元素时,不能直接用该对象操...
分类:
Web程序 时间:
2014-09-09 16:08:28
阅读次数:
186
转载自:http://blog.csdn.net/xw13106209/article/details/66192851.错误描述2011-7-20 11:05:18 org.apache.catalina.core.StandardServer await严重: StandardServer.aw...
分类:
其他好文 时间:
2014-09-07 23:38:55
阅读次数:
384
Introduction to common InterfacesIDataErrorInfoProvides the functionality to offer custom error information that a user interface can bind to..NET Fra...
分类:
其他好文 时间:
2014-09-07 17:10:05
阅读次数:
136
package?com.pk.web.controller;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.multipart.Multipa...
分类:
编程语言 时间:
2014-09-06 23:55:44
阅读次数:
584
D3js技术文档概述 D3 allows you to bind arbitrary data to a Document Object Model (DOM), and then apply data-driven transformations to the document. For exam...
分类:
Web程序 时间:
2014-09-06 23:43:54
阅读次数:
515