1. 创建一个嵌套的过滤器.filter(":not(:has(.selected))") //去掉所有不包含class为.selected的元素2. 重用你的元素查询var allItems = $("div.item"); var keepList = $("div#container1 div...
分类:
Web程序 时间:
2016-01-01 21:02:59
阅读次数:
206
1.获取选中的option的内嵌的值var name = $(ele).find("option:selected").text();2.查找具有某种属性值的元素如查找class="itemname"的spanfind("span[class=itemname]");3.查找含有class="aa"...
分类:
Web程序 时间:
2015-12-27 10:44:40
阅读次数:
183
jQuery Select的操作集合1. $("#select_id").change(function(){... }); //为select添加事件,当选择其中一项时触发2. $("#select_id").find("option:selected").text();//获取select选中的...
分类:
Web程序 时间:
2015-12-25 11:37:08
阅读次数:
170
JQuery下拉框左右移动触发点击按钮时间 然后通过$("#one option:selected")获取目标的下拉框所选中的值 然后把选中的添加到你所要的下拉框中 同时要把原来下拉框的值删除 代码可以一句搞定$("#one option:selected").appendTo("#two")要注意...
分类:
移动开发 时间:
2015-12-24 00:22:35
阅读次数:
190
iPhone5是32位的,所以按照64位编译出来的32位不支持,下面3种方案的,选择第3中就可以了。e8000087: Your iOS device does not support the selected target platform architecture. This can happe...
分类:
移动开发 时间:
2015-12-21 15:52:48
阅读次数:
807
CTRL + R Build and runOPTION + CMD + O 查找工程内的文件或方法或字段CMD + 0 查找工程内的类文件CMD + P Show parameters for selected methodOPTION + CMD + L Reformat codeCMD + N...
分类:
移动开发 时间:
2015-12-18 11:49:33
阅读次数:
267
1、通过显示字符Text DropDownList.Items.FindByText("你的值").Selected=true;如果在设置之前,进行过设置,应用如下格式:DropDownList.ClearSelection();DropDownList.Items.FindByText("你的值"...
分类:
Web程序 时间:
2015-12-14 18:15:45
阅读次数:
166
先科普以下常识:简单来看,按钮有点击、非点击2个状态,点击时系统会自动调用设置按钮高亮状态的方法(setHighlighted:);非点击时视为正常状态(normal)。我们可以根据需要给不同状态设置不同背景图片,苹果官方对按钮状态细致划分为3种:高亮(highlighted)、选中(sele...
分类:
移动开发 时间:
2015-12-12 01:34:33
阅读次数:
853
var newstypevalue =$("#newstype option:selected").val(); if(newstypevalue=='0'){ //标题 $("#id1").attr("disabled",true); $("#id1").hide(); ...
分类:
其他好文 时间:
2015-12-11 23:48:01
阅读次数:
161
偶在今天想通过某一个按钮的按下松开实现针对于某一个动画的切换,之前使用的CCMenuItemImage,大概代码如下:CCMenuItemImage *pFightItem = CCMenuItemImage::create( "Normal.png","Selected.png",this, .....
分类:
其他好文 时间:
2015-12-11 22:04:41
阅读次数:
170