js分割:var s='我1234567890我1234567890我1234567890我1234567890我1234567890我1234567890',reg=/.{4}/g,rs=s.match(reg);rs.push(s.substring(rs.join('').length));alert(rs)java分割:public static String[] split(String msg, int num) {num = num + 1; int len = msg.length(); if (len <= num) return new Read More