元素选择器$(document).ready(function(){ $("button").click(function(){ $("h2").hide(); })})id选择器,class选择器,所有选择器,当前对象this,子类选择器 首个元素 超链接隐藏,按钮$("#click1").h.....
分类:
其他好文 时间:
2015-02-06 14:50:50
阅读次数:
214
文本框input:当文本框focus时会弹出软键盘,有时我们需要click事件而又不想触发focus事件(不要弹出软键盘)给input添加 disabled="disabled"属性屏蔽click及focus事件,再使用touchstart来绑定点击事件下拉选择框select:有时需要在点击的时候做...
分类:
移动开发 时间:
2015-02-06 00:39:40
阅读次数:
211
前台代码: 后台代码:protected void btn_Click(object sender, EventArgs e) { if (!...
分类:
Web程序 时间:
2015-02-05 18:11:08
阅读次数:
114
问题:如题,就是说alert后出现一个对话框,我没有点关闭,其他js文件或html会被加载吗,我遇到一个问题就是在页面加载时调用一个div的click事件,却没有被执行,但是在调用事件前面加上alert('xx');运行后手动关闭提示框click事件就调用成功,为什么,也写了个sleep函数,但不论...
分类:
Web程序 时间:
2015-02-05 12:47:43
阅读次数:
191
首先要确定获取到了连接对象的前提下由于设置了取消新窗口打开private void webBrowser1_NewWindow(object sender, CancelEventArgs e) { e.Cancel=true; }因此在webbro...
核心代码js ="setTimeout(function(){document.getElementsByTagName('Button')[3].click()},100);"下面是我的实验过的示例代码:实验地址:http://pyselenium-d1826.coding.io/exapage....
分类:
Web程序 时间:
2015-02-05 00:44:49
阅读次数:
255
servlet3.0 没有web.xml文件,需要使用注解进行配置。js:$(document).ready(function(){ $("#btn").click(function(){ $.ajax({ type:'post', url:'/testAjax/testAjax1', ...
分类:
Web程序 时间:
2015-02-05 00:41:36
阅读次数:
256
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ ? $("#del").click(function(){ ? ? $("p:first").remov...
分类:
Web程序 时间:
2015-02-04 22:00:15
阅读次数:
134
private void mypicbox_Click(object sender, EventArgs e) { try { OpenFileDialog ofdPic = new OpenFileDialo...
分类:
Web程序 时间:
2015-02-04 18:27:01
阅读次数:
116
将代码中的saveButton.submit()改为saveButton.click()
分类:
移动开发 时间:
2015-02-04 13:10:31
阅读次数:
256