码迷,mamicode.com
首页 >  
搜索关键字:invalid result location value/parameter    ( 21048个结果
Gson json 解析相关不稳定问题
Gson解析json 先定义好一个对象,对象的成员类型都已经确定,如果json数据里的类型不对,这样直接报错。如果json数据放回 {“reslult”:["xxx","xxx"]} 对象定义是个数组即可解析出来,如果遇到“result” 为空?({“reslult”:null})怎么办?Gson解...
分类:Web程序   时间:2014-07-29 21:20:54    阅读次数:324
EDIT Ini写Ini配置
EDIT Ini写Ini配置 usesIniFiles; {$R*.dfm} function IniFileName:string; begin Result:=ExtractFilePath(Application.ExeName)+'Settings.ini'; end; procedureS...
分类:其他好文   时间:2014-07-29 21:17:14    阅读次数:233
获得汉字字符个数
//获得汉字字符个数function ChineseWordsCount(text:string):Integer;var i,sum,e,c,t: Integer;begin Result:=0; c := 0; sum := Length(text); if Sum=0 then exit; f...
分类:其他好文   时间:2014-07-29 21:14:32    阅读次数:211
反转字符串
function ReverseString(s: string): string;var i: integer; s1:string;begin s1 := ''; for i := 1 to Length(s) do s1 := s[i] + s1; Result:=s1;end;procedu...
分类:其他好文   时间:2014-07-29 21:05:32    阅读次数:197
转化对象为map方法
言语不多,直接上代码。private Map introspect(Object obj) throws Exception { Map result = new HashMap(); BeanInfo info = Introspector.getBeanInfo(o...
分类:其他好文   时间:2014-07-29 21:05:22    阅读次数:218
bmp to jpg
uses Jpeg;function BMPtoJPG(var BMPpic, JPGpic: string): boolean;var Bitmap: TBitmap; JpegImg: TJpegImage;begin result := False; Bitmap := TBitmap.Cre...
分类:其他好文   时间:2014-07-29 20:42:42    阅读次数:177
[JAVA] IOException: Invalid byte 2 of 2-byte UTF-8 sequence(解决办法)
IOException: Invalid byte 2 of 2-byte UTF-8 sequence(解决办法)
分类:编程语言   时间:2014-07-29 20:39:02    阅读次数:275
CI框架下nginx重写规则
因为: server { listen 80; server_name 222.73.130.124; location / { index index.html index.htm index.php; root /data0/htdo...
分类:其他好文   时间:2014-07-29 17:38:52    阅读次数:193
javascript将字符串转成方法名
根据其他画面传入的回调方法名,在自己的画面上去调用该方法。这是带参数的方法定义:functioncall_back(funName,result){this.func=function(result){};this.func=eval(funName);}不带参数的方法定义:functioncall_back(funName){this.func=function(){};this.func=eval(funN..
分类:编程语言   时间:2014-07-29 15:58:09    阅读次数:198
javascript自动跳转
1.静态的秒数跳转<scriptlanguage="JavaScript1.2"type="text/javascript"><!--//Placethisinthe‘head‘sectionofyourpage.//url要跳转的页面time等待时间,单位为毫秒。functiondelayURL(url,time){setTimeout("top.location.href=‘"+url+"‘",time);}//--></scr..
分类:编程语言   时间:2014-07-29 15:39:19    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!