javascript替換字串中的某個漢字

pengfoo發表於2013-10-07

var url = "http://127.0.0.1:9000/chi/stroke.html#ChineseWord=問&strokeNum=0&playAll=0&playOne=0&speed=10&setspeed=0";

var re = /[\u4E00-\u9FA5]/g;

url.replace(re, "壞");

相關文章