css模块化加载// 在js文件中加载 css 模块 (css in js (jss)) import styles from './App.module.css' // .module.css 为模块化css的命名规范 //标签上引用 return ( <div className={styles.App}> // style 会转换为对象
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号