08 2021 档案
摘要:滚动条各个属性说明 ::-webkit-scrollbar :滚动条整体部分,其中的属性有width,height,background,border等。 ::-webkit-scrollbar-button :滚动条两端的按钮。可以用display:none让其不显示,也可以添加背景图片,颜色改变
阅读全文
摘要:1. 推荐:使用class的实例方法 class Hello extends React.Component { handleClick = () => { this.setState({ ... }) } } 2. 箭头函数 <button onClick={() => { this.handle
阅读全文
摘要:初始化项目 npx create-react-app my-app // 或 npm init react-app my-app // 或 yarn create react-app my-app 启动项目 cd my-app npm start // 或 yarn start
阅读全文
摘要:设置代理 npm config set proxy=http://server:port npm config set https-proxy https://server:port // https代理设置 npm config set registry=http://registry.npmjs
阅读全文