X龙@China .Net 'blog

需要的不仅仅是工作,而是通过努力得来的美好将来。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年6月2日

摘要: publicstaticstringGetRequestJsonString(stringrelativePath,stringdata){stringrequestUrl=GetRequestUrl(relativePath,data);try{WebRequestrequest=WebRequest.Create(requestUrl);request.Method="GET";StreamReaderjsonStream=newStreamReader(request.GetResponse().GetResponseStream());stringjsonObjec 阅读全文

posted @ 2011-06-02 11:53 X龙 阅读(3010) 评论(4) 推荐(0) 编辑

摘要: String.prototype.format=function(){varargs=arguments;returnthis.replace(/\{(\d+)\}/g,function(m,i){returnargs[i];});}使用:"test{0}".format("test2")String.format=function(){if(arguments.length==0)returnnull;varstr=arguments[0];for(vari=1;i<arguments.length;i++){varre=newRegExp(&# 阅读全文

posted @ 2011-06-02 11:28 X龙 阅读(218) 评论(0) 推荐(0) 编辑

点击这里给我发消息http://wp.qq.com/index.html