07 2020 档案
字间距
摘要:letter-spacing 阅读全文
posted @ 2020-07-31 10:05 chenlw101 阅读(98) 评论(0) 推荐(0) 编辑
html文本保留空格
摘要:white-space:pre 阅读全文
posted @ 2020-07-27 09:22 chenlw101 阅读(384) 评论(0) 推荐(0) 编辑
taro3.0包体积过大问题
摘要:npm i --save-dev terser-webpack-plugin /config/index.js import TerserPlugin from "terser-webpack-plugin" const config = { mini: { webpackChain(chain, 阅读全文
posted @ 2020-07-13 17:26 chenlw101 阅读(3479) 评论(0) 推荐(0) 编辑
小程序转发与剪切板
摘要:onShareAppMessage(res){ if (res.from 'button') { } return { title: '转发', path: '/pages/echarts/echarts?jsonStr=' + "测试信息", success: function (res) { c 阅读全文
posted @ 2020-07-13 16:03 chenlw101 阅读(236) 评论(0) 推荐(0) 编辑
taro引入taro-ui出现引入index.scss错误问题
摘要:package.json "devDependencies": { "taro-ui": "^3.0.0-alpha" } app.scss @import '~taro-ui/dist/style/index.scss'; 任意使用ui界面 import { AtButton } from 'ta 阅读全文
posted @ 2020-07-06 15:00 chenlw101 阅读(5468) 评论(7) 推荐(1) 编辑
refs的用法
摘要:constructor(props){ super(props) this.myRefs = React.createRef(); } refFun(){ const node = this.myRefs.current node.style.color = "red" } render() { r 阅读全文
posted @ 2020-07-03 17:26 chenlw101 阅读(217) 评论(0) 推荐(0) 编辑
prop中增加限制与默认prop
摘要:注 : React.PropTypes 在 React v15.5 版本后已经移到了 prop-types 库。 import PropTypes from 'prop-types' render(){ return ( <div> <div>111</div> //子组件可以{...this.pr 阅读全文
posted @ 2020-07-03 16:23 chenlw101 阅读(386) 评论(0) 推荐(0) 编辑
子组件传递参数到父组件
摘要://子组件(传参数) < input type = "button" value = "提交" onClick = { ()=>{ this.props.handleChange('123') } } / > //子组件(传输入值) < input onChange = { this.props.h 阅读全文
posted @ 2020-07-03 15:48 chenlw101 阅读(349) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示