04 2014 档案

摘要:1: 2: static void Main(string[] args) 3: { 4: timer(null, null); 5: 6: System.Timers.Timer aTimer = new System.Timers.Timer()... 阅读全文
posted @ 2014-04-22 13:41 博客园董事长
摘要:关于JSON和eval需要注意的是:在代码中使用eval是很危险的,特别是用它执行第三方的JSON数据(其中可能包含恶意代码)时,尽可能使用JSON.parse()方法解析字符串本身。该方法可以捕捉JSON中的语法错误,并允许你传入一个函数,用来过滤或转换解析结果。如果此方法以备Firfox 3.5... 阅读全文
posted @ 2014-04-18 10:32 博客园董事长
摘要:public struct MyStruct{public string str;public int number;}class Program { static void Main(string[] args){MyStruct myStruct =new MyStruct();myS... 阅读全文
posted @ 2014-04-16 17:12 博客园董事长