split("|")不能直接用,需转换

String str="22焦|0动|1图|3供";
    String newstr[] = str.split("\\|"); 用\\转换才可以

猜你喜欢

转载自wawa129.iteye.com/blog/1668652