var s = '中国人';
var s1 = 'chinaren';
alert(s.length); //3
alert(s1.length); //8
转载于:https://www.cnblogs.com/qinqiu/p/5183496.html
var s = '中国人';
var s1 = 'chinaren';
alert(s.length); //3
alert(s1.length); //8
转载于:https://www.cnblogs.com/qinqiu/p/5183496.html