_转驼峰

copyItem.replace(/([^_])(?:_+([^_]))/g, ($0, $1, $2) => {
    return $1 + $2.toUpperCase();
});

猜你喜欢

转载自blog.csdn.net/bangbDIV/article/details/89537372