设置字符串中的非中文字符为英文字体

function replaceStr(input){

  return (input || '').replace(/([\x00-\xFF]+)/g,'<font style="font-family:Arial,Helvetica,sans-serifs">$1</font>');

}

posted @ 2011-05-05 15:09  王金鹏  阅读(202)  评论(0)    收藏  举报