码迷,mamicode.com
首页 >  
搜索关键字:click    ( 10709个结果
点击空白区域隐藏
$(window).click(function (e) { var target = $(e.target); if (target.closest("#btn_addNewNodes,#txt_addNewNodes").length == 0) { ...
分类:其他好文   时间:2014-10-28 17:40:19    阅读次数:161
javaScript-jQuery
1.事件var main=function(){ $('.aEl').click(function(){ //.. }); $(document).keypress(function(event){ if(event.which===111){ //... } }...
分类:编程语言   时间:2014-10-28 17:14:56    阅读次数:164
zepto学习零碎
开始学习zepto框架,尝试使用tap事件在手机上替代click,mousestart $('.slide_show').tap(function () { alert(1); });View Code但是导入了zepto.js后,点击事件无法执行,看了官方文档后,touc...
分类:其他好文   时间:2014-10-28 15:30:19    阅读次数:199
winform CheckedListBox实现全选/全不选
/全选 private void button3_Click(object sender, EventArgs e) { for (int i = 0; i < this.checkedListBox1.Items.Count; i++) ...
分类:Windows程序   时间:2014-10-28 15:03:43    阅读次数:208
asp.net 超链接 下载TEXT文件,而不是直接在IE中打开
问题描述:后台生成了文本文件,用超链接提供给用户下载。点击超链接,下载Excel文件没问题,但文本文件会直接被打开,而不是弹出下载窗口。解决方法:把HyperLink改为LinkButton,在Click事件中,用文件流写文本文件。关键代码: 1 protected void Button1_Cli...
分类:Web程序   时间:2014-10-28 12:01:02    阅读次数:138
Could not find HelloCordova-CordovaLib.apk
Right-click then Properties of your HelloCordova-CordovaLib project: in the "Android" tab, check that the "IsLibrary" checkbox is checkedRight-click t...
分类:其他好文   时间:2014-10-28 11:40:59    阅读次数:798
jquery中对动态生成的标签不会响应click事件
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
LeetCode Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-10-27 19:28:33    阅读次数:217
锋利的jQuery-4--阻止事件冒泡和阻止默认行为
阻止事件冒泡:如果嵌套元素分别有自己的click事件,当点击内层元素时外层元素的事件也会被触发。$("span").bind("click", function(event){ //代码 event.stopPropagation(); //通过bind创建的事件对象event来执行} )...
分类:Web程序   时间:2014-10-27 19:26:36    阅读次数:230
jQuery中.bind() .live() .delegate() .on()的区别
bind(type,[data],fn) 为每个匹配元素的特定事件绑定事件处理函数$("a").bind("click",function(){alert("ok");});live(type,[data],fn) 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的$("a").l...
分类:Web程序   时间:2014-10-27 19:00:55    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!