var extend = (function () { for(var p in {toString:null}){ //检查当前浏览器是否支持forin循环去遍历出一个不可枚举的属性,比如toString属性,如果不能遍历不可枚举的属性(IE浏览器缺陷),那么forin循环不会进来 return ...
分类:
编程语言 时间:
2016-09-18 23:41:21
阅读次数:
271
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the following ...
分类:
其他好文 时间:
2016-09-18 22:01:34
阅读次数:
111
jsp: <form class='uk-form' action="savelead" method="post" enctype="multipart/form-data" onsubmit="return savelead();"> </form> 传递一个附件 action: @Reques ...
分类:
编程语言 时间:
2016-09-18 18:09:06
阅读次数:
145
/** * 生成随机串,随机串包含字母或数字 * @return 随机串 */ public static string GenerateNonceStr() { return Guid.NewGuid().ToString().Replace("-", ""); } ...
/** * 根据当前系统时间加随机序列来生成订单号 * @return 订单号 */ public static string GenerateOrderNo() { Random ran = new Random(); return string.Format("{0}{1}{2}", "用户id ...
/** * 生成时间戳,标准北京时间,时区为东八区,自1970年1月1日 0点0分0秒以来的秒数 * @return 时间戳 */ public static string GenerateTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateT ...
如下代码所示,onclick执行完login()代码后,如果不加return false;会执行跳转(由于href为#,所以一般不明显,但是如果在jsp页面中设置了base后就会跳转到base/#) ...
分类:
其他好文 时间:
2016-09-18 11:50:37
阅读次数:
257
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code ...
分类:
移动开发 时间:
2016-09-18 11:38:29
阅读次数:
147
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2016-09-18 07:49:14
阅读次数:
183
1.Object类:所有类的根类。是不断抽取而来的,具备所有对象都具有的共性内容。其中的方法,任何对象都可以调用。继承而来的。 equals()方法: Object类的equals源码:比较两个对象是否相同 public boolean equals(Object obj) { return thi ...
分类:
其他好文 时间:
2016-09-17 23:45:22
阅读次数:
139