碰到空值咋办,直接就报错停了。求大佬赐招
1
Zzde 2018-02-28 01:29:52 +08:00 via iPhone
try
|
2
stamaimer 2018-02-28 01:37:05 +08:00 via iPhone
check before get
|
3
zwl2012 2018-02-28 02:08:34 +08:00 via iPhone
取之前判断下呗
|
4
grimpil 2018-02-28 08:07:42 +08:00 via Android
先判断是不是空值
|
5
mochanight 2018-02-28 08:59:59 +08:00 via iPhone
加个 if 判断 xxx[0]是不是为空
|