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