有两个窗体,一个子窗体,一个父窗体,当点击父窗体中的按钮,弹出子窗体,在子窗体中添加完数据,单击确定按钮后,数据在父窗体的数据显示控件中立即显示,实现其实很简单,同时方法也很多,我是利用了一种最简单的方法。子窗体SubForm:protectedvoidbtnOk_Click(objectsende...
最近对于事件绑定处理用的比较多,进行总结一下bind单个元素的事件绑定扫描文档找出所有的$(‘a')元素,并把alert函数绑定到每个元素的click事件上。$('a').bind('click',function(){alert('That tickles!');})备注:bind并不能对未来添加...
分类:
其他好文 时间:
2014-07-24 16:59:05
阅读次数:
246
效果如下:html代码: click on me! CSS代码:#contentPopup { position: absolute; display: none; ...
分类:
其他好文 时间:
2014-07-24 14:42:15
阅读次数:
303
Private Sub Form_Click() Dim c() As String c = Split("A,B,C,D,E", ",") For i = 0 To UBound(c) Print c(i) Next iEnd Sub运行效果:ABCDEPri...
分类:
其他好文 时间:
2014-07-24 10:07:34
阅读次数:
215
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click...
分类:
其他好文 时间:
2014-07-24 09:57:33
阅读次数:
179
How to use Virstalbox to share files with Linux and Windows, and to move the mouse in and out Virtualbox freely without click Ctrl key, herewith what I have done to achieve both....
在我们用javascript动态添加某一类型的元素时,这些元素需要绑定某一事件,比如click事件,那么我们就需要用到delegate函数如果我们在每一次动态添加这种类型的元素的时候,都为该元素绑定某一事件的话,这样比较浪费。delegate函数就是让我们为某一类型的元素只绑定一次某一事件即可,即使...
分类:
其他好文 时间:
2014-07-23 18:01:46
阅读次数:
251
场景由于webdriver是要模拟真实的用户操作,因此webdriver的Action类中提供了很多与操作有关的方法。下面列举一下Action类的一些主要方法key_down。模拟按键按下key_up。模拟按键弹起clicksend_keysdouble_click。鼠标左键双击click_and_...
分类:
其他好文 时间:
2014-07-23 15:22:16
阅读次数:
155
一、Silverlight xaml.cs文件按钮触发方法1、//下载图表 private void btnDown_Click(object sender, RoutedEventArgs e) { DBServiceClient svc = new DBServiceClient(); s...
分类:
Web程序 时间:
2014-07-23 15:18:06
阅读次数:
280
public void clickReportIcon(){ String initialWindowHandle = driver.getWindowHandle(); //保存原始的浏览器窗口 page.getReportIcon().click(); //这个操作之后将会弹出另外一个浏...
分类:
其他好文 时间:
2014-07-23 15:14:46
阅读次数:
227