上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: DECLARE @TypeId INT, @Price1 FLOAT, @Original FLOAT DECLARE my_cursor CURSOR SCROLL FOR SELECT TypeId,Price1,Original FROM [DomainType]--定义游标 OPEN my_cursor--打开游标 FETCH NEXT FROM my_cursor INTO @TypeId,@Price1,@Original--读取一条 WHILE @@FETCH_STATUS=0--判断状态ahjesus循环 BEGIN--执行某些操作 --PRINT ... 阅读全文
posted @ 2013-11-01 10:29 深海大虾 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1:设置自己的自定义属性 public class NameAttribute:Attribute { private string _description; public NameAttribute(string description) { _description = description; } public string Description { get { return _description; } } }2:设置获取属性或属性名的类 ... 阅读全文
posted @ 2013-10-11 11:28 深海大虾 阅读(457) 评论(0) 推荐(0) 编辑
摘要: http://www.themepunch.com/codecanyon/revolution_wp/记录一下以后用//出自http://www.cnblogs.com/ahjesus尊重作者辛苦劳动成果,转载请注明出处,谢谢! 阅读全文
posted @ 2013-10-08 17:08 深海大虾 阅读(493) 评论(0) 推荐(0) 编辑
摘要: .clearf{display: inline-block;}.clearf:after {content: "."; display: block;height: 0; clear: both; visibility: hidden;}/* Hides from IE-mac \*/* html .clearf {height: 1%;}.clearf {display: block;}/* End hide from IE-mac */ 阅读全文
posted @ 2013-09-14 10:28 深海大虾 阅读(603) 评论(0) 推荐(0) 编辑
摘要: Javascript中void是一个操作符,该操作符指定要计算一个表达式但是不返回值。void操作符用法格式如下:1.javascript:void (expression)2.javascript:void expressionexpression是一个要计算的 Javascript 标准的表达式。表达式外侧的圆括号是选的,但是写上去是一个好习惯。 (实现版本Navigator 3.0)你以使用void 操作符指定超级链接。表达式会被计算但是不会当前文档处装入任何内容。下面的代码创建了一个超级链接,当用户以后不会发生任何事。当用户链接时,void(0)计算为 0,但 Javascript 上 阅读全文
posted @ 2013-08-16 09:28 深海大虾 阅读(351) 评论(0) 推荐(0) 编辑
摘要: /* 快速幂计算,传统计算方式如果幂次是100就要循环100遍求值 快速幂计算只需要循环7次即可 求x的y次方 x^y可以做如下分解 把y转换为2进制,设第n位的值为i,计算第n位的权为x^(2^(n-1)*i) 例如2^12 12的二进制是1100 12=2^3*1+2^2*1+2^1*0+2^0*0 因此2^12=2^(2^3+2^2) 分解得到2^12=2^(2^3)*2^(2^2) */ function myPow(dx, dy) { var r = 1; while (dy != 0) {... 阅读全文
posted @ 2013-08-16 09:26 深海大虾 阅读(1068) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2013-07-17 21:27 深海大虾 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 使用说明://出自http://www.cnblogs.com/ahjesus 尊重作者辛苦劳动成果,转载请注明出处,谢谢!var idCard = new IdCard();var msg = idCard.Fill("430102190001010883").Check(true);//true 开启检查console.log(msg);//一下是msg的信息用于解析15和18位身份证,成功返回{Errornullbirthday"1900-01-01"city"长沙市"county"芙蓉区"gender&qu 阅读全文
posted @ 2013-06-26 11:35 深海大虾 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: String.prototype.isNullOrWhiteSpace = function () { /// /// 变量是undefined或者null或者空字符串 出自http://www.cnblogs.com/ahjesus 尊重作者辛苦劳动成果,转载请注明出处,谢谢! /// /// if (this.trim() == "") { return true; } else if (this == null) { return true; } else { ... 阅读全文
posted @ 2013-06-25 17:59 深海大虾 阅读(786) 评论(0) 推荐(0) 编辑
摘要: xcode4.6 创建项目 无法autorelease和release查阅资料后得知oc对内存的管理有多种方式因为使用了ARC,即自动引用计数,你自己alloc的对象不用调用release时间,有系统控制内存的释放。因为你再使用release或者dealloc事件就会出错,如果你想要使用release事件的话,需要再工程的设置中做修改,到工程Build Settings中查找Objective-c Automatic Reference Counting。把它给成NO应该就可以了。改完了以后项目alloc的对象都需要release和autorelease。 阅读全文
posted @ 2013-06-15 21:10 深海大虾 阅读(1351) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页