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
posted @ 2012-11-23 10:30 七郎 Views(251) Comments(0) Diggs(0) Edit