在自动化测试的过程中,经常会出现这样的场景:按住Ctrl的同时,进行单击操作,已达到多选的目的Actions a = new Actions(driver);a.keyDown(Keys.CONTROL).perform();for(int i = 0;i<quantity;i++){ W...
分类:
其他好文 时间:
2014-07-09 21:33:36
阅读次数:
305
当点击鼠标时,隐藏或显示 p 元素:$("div").delegate("button","click",function(){ $("p").slideToggle();});delegate() 方法为指定的元素(属于被选元素的子元素)添加一个或多个事件处理程序,并规定当这些事件发生时运行的函....
分类:
Web程序 时间:
2014-07-09 21:24:49
阅读次数:
293
1.Open"SQLServerConfigurationManager"2.Click"SQLServerServices"ontheleftpane3.Right-clickonyourSQLServerinstancenameontherightpane->Default:SQLServer(...
分类:
数据库 时间:
2014-07-09 20:31:41
阅读次数:
418
Error info:Gen already exists but is not a source folder.Workaround-1:1. Right click project, and select "Properties"2. Select "Java Build Path"3. Ope...
分类:
其他好文 时间:
2014-07-09 19:29:27
阅读次数:
182
$("#HomeData").live("click", function () { $.post("/Home/NewIndex/TransactionData", function (data) { if ($.browser.msie) { ...
分类:
Web程序 时间:
2014-07-09 18:19:46
阅读次数:
220
$('input[name="teams"]:checked').size() 1 // 全选2 $("#quanteam").bind("click", function () {3 $("[name = teams]:checkbox").attr("check...
分类:
编程语言 时间:
2014-07-09 18:13:52
阅读次数:
255
jQuery 操作 input 之 checkbox 篇
HTML 代码清单:
棒球
乒乓球
羽毛球
篮球
足球
全选
1、给每一个 item 绑定事件:
$("[name='hobby']:checkbox").on('click', function(){
alert($(this).val());
});
2、获取选中的 item:
$("[name='c...
分类:
Web程序 时间:
2014-07-08 18:53:33
阅读次数:
224
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.Cl...
分类:
其他好文 时间:
2014-07-08 10:26:31
阅读次数:
240
<scripttype="text/javascript"src="js/jquery-1.7.js"></script><scripttype="text/javascript">$(function(){ $("#button").click(function(){ $.ajax({ url:‘myServlet‘, type:‘post‘, dataType:‘json‘, //data:{‘username‘:$("#username").val()},/..
分类:
Web程序 时间:
2014-07-08 10:09:29
阅读次数:
257
//导出 protected void BtnOutPut_Click(object sender, EventArgs e) { //角色 InitialRoles(); DataTable dt = DBClass.GetDataTa...
分类:
其他好文 时间:
2014-07-08 00:26:18
阅读次数:
200