strtr是PHP下的一个函数,具体功自己看:https://blog.csdn.net/aidenliu/article/details/5695433
完整JavaScript实现代码摘录如下:

function strtr(str, from, to) {[......]

阅读全文