1
2
3
4
5
6
export default {
counts_zh_str (str) {
str = str.replace(/[^\x00-\xff]/g, "00")
return str.length
}
}