Jquery中对ajax动态生成的html标签不会响应 $(selector).click(function.. 或者$(selector).bind('click',function.., 需要用.live。
我们这样绑定元素的click事件,以后jquery动态生成的元素,click事件也有效。
$('.clickme').live('click', function() {
aler...
分类:
Web程序 时间:
2014-10-27 23:01:47
阅读次数:
282
用cactiez监控DNS(BIND9)---附模板1.配置bind的状态输出文件statistics-file"/var/run/named.stats";状态输出文件2.下载附件中的模板,解包将cacti_host_template_bind9_7.xml导入到cactiez3.安装snmp服务,可通过YUM直接安装yum-yinstallnet-snmp-*4.配置snmp文件,并在snmp..
分类:
其他好文 时间:
2014-10-27 19:49:35
阅读次数:
428
首先安装yum,使用yum安装bindyuminstallbind*不同的操作系统rpm包有可能会不同bind-9.8.2-0.17.rc1.el6.x86_64bind-utils-9.8.2-0.17.rc1.el6.x86_64bind-chroot-9.8.2-0.17.rc1.el6.x86_64bind-dyndb-ldap-2.3-2.el6.x86_64bind-libs-9.8.2-0.17.rc1.el6.x86_64几个rpm包安装..
分类:
其他好文 时间:
2014-10-27 19:47:24
阅读次数:
620
阻止事件冒泡:如果嵌套元素分别有自己的click事件,当点击内层元素时外层元素的事件也会被触发。$("span").bind("click", function(event){ //代码 event.stopPropagation(); //通过bind创建的事件对象event来执行} )...
分类:
Web程序 时间:
2014-10-27 19:26:36
阅读次数:
230
bind(type,[data],fn) 为每个匹配元素的特定事件绑定事件处理函数$("a").bind("click",function(){alert("ok");});live(type,[data],fn) 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的$("a").l...
分类:
Web程序 时间:
2014-10-27 19:00:55
阅读次数:
189
<!-- 对于IE 10 以下版本placeholder的兼容性调整 -->
<!--[if lt IE 10]>
<script>
$(function(){
$("input[type!=‘password‘],textarea").bind({
"focus":function(){
var placeholderVal = $(this).at...
分类:
其他好文 时间:
2014-10-27 12:56:58
阅读次数:
188
1. Bound Services A bound service is the server in a client-server interface. A bound service allows components (such as activities) to bind to the s....
分类:
移动开发 时间:
2014-10-27 12:28:20
阅读次数:
250
server端代码:importsocket,commands
host=‘‘
port=1053
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((host,port))
s.listen(1)
while1:
conn,addr=s.accept()
while1:
data=conn.recv(1024)
cc,bb=commands.getstatusoutput(data)
iflen(bb.strip())!=0:
con..
分类:
编程语言 时间:
2014-10-26 19:52:38
阅读次数:
188
// Bind script tag hack transportjQuery.ajaxTransport( "script", function(s) { // This transport only deals with cross domain requests if ( s.crossD.....
分类:
Web程序 时间:
2014-10-26 19:46:30
阅读次数:
261
今天将ArcGIS系列的软件从ArcGIS9.3.1升级到ArcGIS10.1,然后就使用VS创建一个简单的AE应用程序,然后拖放一个toolbar、LicenseControl以及MapControl控件。接着编译应用程序,编译成功。然后单击F5运行程序,这个时候程序报错,出现下面所示的错误:Ar...
分类:
其他好文 时间:
2014-10-26 00:19:05
阅读次数:
275