java instanceof 判断是否是String

if(formbean.getBean().get("RZZGMCM") instanceof String){
formbean.getBean().put("RZZGMCM_ARR", (formbean.getBean().get("RZZGMCM").toString().split(",")));

}else{

formbean.getBean().put("RZZGMCM_ARR", (formbean.getBean().get("RZZGMCM")));

 

posted @ 2020-09-07 13:17  红尘沙漏  阅读(973)  评论(0编辑  收藏  举报