php ob_start 与 ob_end_flush() 是 php 的缓冲输出函数。ob_start([string output_callback])- 打开输出缓冲区,所有的输出信息不在直接发送到浏览器,而是保存在输出缓冲区里面,可选得回调函数用于处理输出结果信息。ob_end_flush ...
分类:
Web程序 时间:
2015-06-12 16:57:18
阅读次数:
133
1. Question求最长无重复字符子串。Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withou...
分类:
其他好文 时间:
2015-06-12 16:48:13
阅读次数:
118
1.Set set是string类型的无序集合,其参考来源应该属于STL中的Set。 ?set元素最大可以包含(2的32次方-1)个元素。 ?set的是通过hash table实现的,hash table会随着添加或者删除自动的调整大小。 2. CRUD smembers: smembers key...
分类:
其他好文 时间:
2015-06-12 16:42:22
阅读次数:
102
/// /// 替换图片路径 /// /// /// public string ReplaceImgSrc(string strContent) { return Re...
分类:
其他好文 时间:
2015-06-12 16:42:08
阅读次数:
99
1.对象初始化器 在调用构造函数时直接初始化对象。public class Student{ public string Name; public int Age; public bool Gender;}Student stu=new Student{Name="zhangsan...
分类:
其他好文 时间:
2015-06-12 16:41:58
阅读次数:
82
problems: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".class Solution {public: string...
分类:
其他好文 时间:
2015-06-12 16:40:21
阅读次数:
71
@implementation NSString (Emoji)+ (BOOL)stringContainsEmoji:(NSString *)string{ __block BOOL returnValue = NO; [string enumerateSubstringsInRang...
分类:
其他好文 时间:
2015-06-12 16:36:24
阅读次数:
118
MVC前台界面调用方式如下: @Html.AreaDropDownList("areaCode", areaCode, 3, string.Empty)参数说明:第一个参数控件的名称;第二个参数选中的地区编码;第三个参数地区层级;第四个参数根级地区;地区数据库表设计如下:下拉列表的扩展: 1 #.....
分类:
Web程序 时间:
2015-06-12 16:33:55
阅读次数:
120
/// /// 远程获取页面数据 /// /// 地址 /// public static string GetHttpData(string Url) { //strin...
public void exportExcel(List repayXist,HttpServletRequest request,HttpServletResponse response,List listArea,String drxh) throws Exception{ log.info("...
分类:
其他好文 时间:
2015-06-12 16:31:10
阅读次数:
321