01 2020 档案
摘要:React是什么? 官方解释:用于构建用户界面的Javascript库 为什么要学React? 优势 采用组件化模式、声明式编码,提高开发效率及组件复用率。 在React Native中可以使用Reacti吾法进行移动端开发。 使用虚拟DOM+优秀的Diffing算法,尽量减少与真实DOM的交互。
阅读全文
摘要:考虑过得方案 react-motion 非常酷炫如果要做复杂动画目前来看非它莫属,但是于我简单易复制的期望不符 animate.css 用css 实现了各种常见的动画效果,而且还有人封装了react-animated-css react-transition-group 官方的方案容易上手,但是应对
阅读全文
摘要:::-webkit-scrollbar {/*隐藏滚轮*/ display: none; }
阅读全文
摘要:GetBrowserCore.js export default () => { var sBrowser = null var sUsrAg = window.navigator.userAgent // The order matters here, and this may report fa
阅读全文
摘要:解决办法: 参考Tencent 腾讯首页移动端视频属性 <video src={require('../../assets/video/fowin_background.mp4')} x-webkit-airplay={true} preload playsInline airplay="allow
阅读全文
摘要:import React, {Component} from 'react'; import "animate.css"; import { Helmet } from 'react-helmet'; import './home.scss'; import { Modal, Button } fr
阅读全文
摘要:CSS代码 .mask{ background: rgba(0,0,0,0.4) !important; z-index: 10; height: 100vh; position: fixed; width: 100vw; } .selectMask_box{ background: rgba(0,
阅读全文
摘要:第一步,先查看本机node.js版本: node -v 第二步,清除node.js的cache: sudo npm cache clean -f 第三步,安装 n 工具,这个工具是专门用来管理node.js版本的,别怀疑这个工具的名字,是他是他就是他,他的名字就是 "n" sudo npm inst
阅读全文