angular版本:1.2.26<divclass="checkboxcol-md-12{{m.state?‘selected‘:‘‘}}"ng-repeat="minksType|filter:keyWords">
<label>
<inputtype="checkbox"ng-model="m"ng-checked="m.state"value=""ng-change="chooseCheck(m)">{{m.MC}}
</label>
</div..
分类:
编程语言 时间:
2015-04-23 11:08:12
阅读次数:
173
一、注意:1、prop的性能更高,因为attr需要访问DOM属性节点,访问DOM是最耗时的。这种情况适用于多选项全选和反选的情况2、在遇到要获取或设置checked,selected,readonly和disabled等属性时,用prop方法显然更好,比如像下面这样:console.log(el.a...
分类:
Web程序 时间:
2015-04-22 18:02:42
阅读次数:
157
DB2V9.5:db2connecttosampleDatabaseConnectionInformationDatabaseserver=DB2/AIX649.5.7SQLauthorizationID=W95Q7ALocaldatabasealias=SAMPLEdb2"valueschar(dec(123))"1-------------00000000123.1record(s)selected.DB2V9.7:db2connecttosampleDatabaseConnectionInformati..
分类:
其他好文 时间:
2015-04-22 15:28:51
阅读次数:
196
UIButton * btn; [btn setImage:[UIImage imageNamed:@"a.png"] forState:UIControlStateNormal]; [btn setImage:[UIImage imageNamed:@"b....
分类:
其他好文 时间:
2015-04-20 13:02:45
阅读次数:
111
1.过滤1.1 eq 查找元素从0开始00000000111111111.2 first()和 last() 选取第一个和最后一个元素 $("div").first()1.3 filter(expr),筛选有该类的第一个节点,例如: alert($("p").filter(".selected )....
分类:
Web程序 时间:
2015-04-19 21:07:01
阅读次数:
127
解决点击cell执行动画导致的重用问题说明:动画的细节都是裸露的,并没有封装,靠看官来优化了。效果:源码:https://github.com/YouXianMing/UITableViewSelectedAnimation核心://// YouXianMingCell.h// Selected.....
分类:
其他好文 时间:
2015-04-17 21:48:02
阅读次数:
188
TheQtGui.QFileDialogis a dialog that allows users to select files or directories. The files can be selected for both opening and saving.#!/usr/bin/pyt...
分类:
其他好文 时间:
2015-04-17 20:03:00
阅读次数:
165
直击现场 这个东东可以用来做插件LFTP 4.6.2 发布,新增特征如下:* new command "edit" instead of the edit alias.* new setting ssl:priority for disabling selected protocols.* new ...
分类:
其他好文 时间:
2015-04-17 19:46:56
阅读次数:
162
id,name属性在开始学时用处不大;multiple="multiple" 填在属性里时,在下拉列表中可应用于多选size应用:(1)正常情况 size="1"(2)size="2"(3) size="3"(4) size为1时,首位显示相应的option内的内容用 selected(此属性为默认...
分类:
其他好文 时间:
2015-04-17 13:23:02
阅读次数:
83
10元 用 1 2 5 有多少种凑法也是动态规划的方式 当10元里面有一个5元 那么实际上问题就变成了5元怎么凑(是指用 1 2 怎么凑) var sum = 10; var arr = [1, 2, 5]; var selected = []; function get...
分类:
其他好文 时间:
2015-04-16 01:23:32
阅读次数:
91