效果很好而且很简单用text的click属性即可private sub text1_click()label1.caption="******"label2.caption=""label3.caption=""label4.caption=""……labeln.caption=""end subp...
分类:
其他好文 时间:
2014-08-14 16:03:58
阅读次数:
249
///获取Mysql里面的数据 protected void Button1_Click(object sender, EventArgs e) { ///实例化强类型的数据集 macs_20140707TableAdapter...
分类:
数据库 时间:
2014-08-14 15:59:48
阅读次数:
171
$(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