$(document).on("click", 'a.AAA', function(){ var flag=$(this).attr('flag'); alert(flag);
});
分类:
Web程序 时间:
2014-08-14 13:42:58
阅读次数:
203
一、ie7使用$(obj).attr("onclick","alert(111)")没效果 改成 1) $(obj).bind("click",function(){ ????alert(111); }) 2) $(obj).click(function(){ ????alert(111); }) 二、绑定事件时,直接传ID会导致...
分类:
其他好文 时间:
2014-08-14 11:04:38
阅读次数:
187
Problem Description:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
click to show clarification.
Clarificat...
分类:
其他好文 时间:
2014-08-13 22:33:27
阅读次数:
276
Ctrl+Shift + Enter,语句完成“!”,否定完成,输入表达式时按 “!”键Ctrl+E,最近的文件Ctrl+Shift+E,最近更改的文件Shift+Click,可以关闭文件Ctrl+[OR ],可以跑到大括号的开头与结尾Ctrl+F12,可以显示当前文件的结构Ctrl+F7,可以查询...
分类:
其他好文 时间:
2014-08-13 21:43:07
阅读次数:
277
窗体传值是在学习窗体应用程序时碰到的一类比较常见的问题,现将窗体传值方法做了一点总结,方法如下:声明全局变量传值:在Form1中声明全局变量,如下所示:1 public static string str = "窗体1的值";通过Form1的button1_Click事件即可将此全局变量传递给For...
读了深入理解C#书中的 5.3.1 委托参数的逆变性,记录一下。先看一段代码:public Form1(){ InitializeComponent(); Button button1 = new Button {Text = "Click me 1", Location = new P...
分类:
其他好文 时间:
2014-08-13 18:27:36
阅读次数:
174
js创建一个元素hiddenElementhiddenElement.setAttribute('href','')hiddenElement.setAttribute('target','_self')hiddenElement.click();这种写法在IE8下好用,但是IE8+就不好用了貌似I...
.NET开发的网站,如果不是使用预编译发布,网站会在iis6应用池回收后第一次访问很慢,为了解决这个问题,今天写了一个自动浏览的工具,现在分享给大家,界面如下。关键部分源码 //手动点击浏览 private void btnBrowsing_Click(object se...
分类:
Web程序 时间:
2014-08-13 14:26:46
阅读次数:
411
(一)、事件列表。 1.blur() 当失去焦点时触发。包括鼠标点击离开和TAB键离开。 2.change() 当元素获取焦点后,值改变失去焦点事触发。 3.click() 当鼠标单击时触发。 4.dblclick() 当鼠标双击时触发。 5.error(...
分类:
Web程序 时间:
2014-08-13 13:01:26
阅读次数:
221
Right-click on the module, select "Add framework support...", and check the "Maven" technology. (This also creates a?pom.xml?for you to modify.) If you mean adding source repository elements, I ...
分类:
其他好文 时间:
2014-08-13 10:44:45
阅读次数:
1136