js 替换 中文 汉字 字符串

alert("L威廉O加油V君E".replace(/([^u0000-u00FF])/g, function ($) { return escape($); }));
原文地址:https://www.cnblogs.com/shaoing/p/9564563.html