Answer #1: ... How about this: json.replace(/"([^"]+)":/g,function($0,$1){return ('"'+$1.toLowerCase()+'":');}));. The regex captures the key name $1 and converts ...
確定! 回上一頁