实际上就是把英文转化为ASCII码,此方式适用于后端返回数据,前端处理。 "fasfaf".split('').reduce((total,item)=>total+item.charCodeAt(),0)