JS实现HTML实体与字符的相互转换 function stringToEntity(str,radix){ let arr=str.split('') radix=radix||0 let tmp=arr.map(it ...