有字符串 :a,b,c,d 替换成  'a','b','c','d'preg_replace("/\w/","'$0'",'a,b,c,d')javascript版"a,b,c,d".replace(/(\w)/g,function($0){return "'"+$0+"'"})