メモ。
var str = 'hoge_fuga_piyo';
var camel = str.replace(/_./g, function(matched) {
return matched.charAt(1).toUpperCase();
});
console.log(camel);
メモ。
var str = 'hoge_fuga_piyo';
var camel = str.replace(/_./g, function(matched) {
return matched.charAt(1).toUpperCase();
});
console.log(camel);