字符串Unicode编码查询

function getStrLength(str) {
	var len=0;
	var len=0;
	for(var i=0;i<str.length;i++){
	    code=str.charCodeAt(i);
		console.log(code);
	}
}

猜你喜欢

转载自blog.csdn.net/weixin_42500793/article/details/81412674