js怎么将css属性名转换为驼峰式S_驼峰式和连字符式的转换1.驼峰转连字符:var s = "fooStyleCss"s = s.replace(([A-Z])g,"-$1").toLowerCase()利用正则进行替换,简2023-02-19JavaScript350