So, the New Year holidays are over. Santa Claus and his colleagues can take a rest and have guests at last. When two "New Year and Christmas Men" meet, thear assistants cut out of cardboard the letter...
分类:
其他好文 时间:
2014-07-22 23:03:53
阅读次数:
521
string path = Server.MapPath("copycode/code.txt");
string[] allCodeLine = System.IO.File.ReadAllLines(path, System.Text.Encoding.UTF8);
System.Text.StringBuilder strb = new Sys...
分类:
Web程序 时间:
2014-07-22 23:02:54
阅读次数:
366
一 设置, 查看, 删除断点信息b xxx.cpp : num(or function)在
xxx.cpp 的第 num 行设置断点, 假如项目中只有一个 .cpp 文件, 不需要指定 xxx.cpp, 直接 b num 即可info break
查看断点信息, 断点信息中有断点的 index, 通...
分类:
数据库 时间:
2014-05-01 21:09:59
阅读次数:
433
创建数组如果你习惯了用 new
来实例化对象的形式,那么在js中一定会疑惑,可选的参数数量代表的意义截然不同。new
Array(size);//传一个参数的时候分两种情况,size是正整数时代表数组的长度;size是其它非数字类型代表的是初始化有一个元素的数组;非正整数的尝试豪无意义new
Arr...
分类:
编程语言 时间:
2014-05-01 20:43:40
阅读次数:
427
1.使用DataSource=dt方式绑定GridView并实现删除时,引发了未处理的“RowsDelete”事件:
更改CommandName="Delete" 改一个名字
,否则会引发GridView自身的Delete事件,但其实并未设置Delete事件。2.使用DataSource=dt方式绑...
分类:
其他好文 时间:
2014-05-01 18:39:19
阅读次数:
286
方法1:Guid guid = new Guid
("{8238B046-EC5F-46B6-8E18-028F77EC2620}");SPSite Asite = new SPSite
("http://mosslt/");SPList list = Asite.RootWeb.Lists[gui...
分类:
其他好文 时间:
2014-05-01 18:38:35
阅读次数:
290
1、添加权限:AndroidManifest.xml中必须使用许可”android.permission.INTERNET”,否则会出Web page not available错误。
2、在要Activity中生成一个WebView组件:WebView webView = new WebView(this);
3、设置WebView基本信息:...
分类:
移动开发 时间:
2014-05-01 18:19:58
阅读次数:
480
public class SessionListener implements HttpSessionListener {
static Logger log = Logger.getLogger(
SessionListener.class.getName());
private static Map map = new
HashMap(); ...
分类:
编程语言 时间:
2014-04-30 22:31:38
阅读次数:
397
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
/**
*Gson序列化对象排除属性
*调用方法:
*String[] keys = { "id" };
*Gson gson = new GsonBuilder().setExclusionStrategies(new Jso...
分类:
其他好文 时间:
2014-04-30 22:22:38
阅读次数:
610