/** *判断对象是否为空 * * @param e * @returns {Number} */function isEmptyObject(e) { var t; for (t in e) return !1; return !0 } ...
分类:
Web程序 时间:
2016-06-09 09:45:02
阅读次数:
213
/// <summary> /// 向Url发送post请求 /// </summary> /// <param name="postData">发送数据</param> /// <param name="uriStr">接受数据的Url</param> /// <returns>返回网站响应请求的 ...
分类:
其他好文 时间:
2016-06-08 12:28:25
阅读次数:
137
#region 获取web客户端ip /// <summary> /// 获取IP地址 /// </summary> /// <returns></returns> public static string getIPAddress() { string ipv4 = String.Empty; f ...
对于Reader比较麻烦需要记住以下: When Read encounters an error or end-of-file condition after successfully reading n > 0 bytes, it returns the number of bytes read ...
分类:
其他好文 时间:
2016-06-07 13:05:22
阅读次数:
309
/// <summary> /// 扩展方法,将一个Json字符串反序列化为DataTable /// </summary> /// <typeparam name="T">类型</typeparam> /// <param name="str"></param> /// <returns>Data ...
分类:
Web程序 时间:
2016-06-06 18:40:59
阅读次数:
139
public class HttpClientHelper 2 { 3 /// <summary> 4 /// get请求 5 /// </summary> 6 /// <param name="url"></param> 7 /// <returns></returns> 8 public sta ...
分类:
微信 时间:
2016-06-06 16:45:55
阅读次数:
961
题目链接:https://leetcode.com/problems/implement-strstr/
题目:
Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
算法:
...
分类:
其他好文 时间:
2016-06-06 01:11:08
阅读次数:
172
Reverse String
Total Accepted: 32384 Total
Submissions: 55169 Difficulty: Easy
Write a function that takes a string as input and returns the string reversed.
Example:
Given...
分类:
其他好文 时间:
2016-06-05 11:14:14
阅读次数:
118
题目: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 思路:首尾字符交换 c++代码: ...
分类:
其他好文 时间:
2016-06-04 16:10:12
阅读次数:
114
如果两个参数不一样长,那么取短的。 也可以反向操作,见下面: 自然,也可以操作三个或者一个参数: python.org的解释: 1. This function returns a list of tuples, where the i-th tuple contains the i-th elem ...
分类:
编程语言 时间:
2016-06-03 22:58:48
阅读次数:
409