首页 何问起 前端特效 htbtn-4 闪电 使用方法
摘要: 获取一组radio被选中项的值var item = $('input[@name=items][@checked]').val();获取select被选中项的文本var item = $("select[@name=items] option[@selected]").text();select下拉框的第二个元素为当前选中值$('#select_id')[0].selectedIndex = 1;radio单选组的第二个元素为当前选中值$('input[@name=items]').get(1).checked = true; 阅读全文
posted @ 2013-12-11 23:19 roucheng 阅读(2411) 评论(0) 推荐(0) 编辑
摘要: 查看最大线程数:cat /proc/sys/kernel/threads-maxulimitUser limits - limit the use of system-wide resources.Syntaxulimit [-acdfHlmnpsStuv] [limit]Options-S Change and report the soft limit associated with a resource.-H Change and report the hard limit associated with a resource.-a All current limits are repo 阅读全文
posted @ 2013-12-11 23:13 roucheng 阅读(12671) 评论(0) 推荐(1) 编辑
摘要: 在andriod项目中引用另一个library project时,报The container 'Android Dependencies' references non existing library 'xxxxxxx' 错误http://www.cnblogs.com/roucheng/解决办法是右击library project,选择Build Path->Configure Build Path->Order andExport->Select All将所有包都选上 阅读全文
posted @ 2013-12-11 23:10 roucheng 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 虽然这个问题很简单,但是对于我这接触两天的菜鸟来说也弄了很久,网上又找不到相关的解决方法,避免其他人和我一样,还是记录一下一般网上找到的教程是这么教:-(void )touchesBegin:(NSSet *)touches withEvent:(UIEvent *)event{ NSArray *twoTouches = [touches allObjects]; UITouch *firstTouch = [twoTouches objectAtIndex:0]; UITouch *secondTouch = [twoTouches objectAtInde... 阅读全文
posted @ 2013-12-11 23:01 roucheng 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 废话不说只有代码: 1 using System.Linq; 2 using System.Collections.Generic; 3 4 namespace CommonLibrary 5 { 6 public class PagedList : List 7 { 8 #region Properties 9 10 public int PageIndex { get; private set; }11 12 public int PageSize { get; private set; }13 14 pub... 阅读全文
posted @ 2013-12-11 00:34 roucheng 阅读(1608) 评论(2) 推荐(1) 编辑