上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: white-space:pre 阅读全文
posted @ 2020-07-27 09:22 chenlw101 阅读(382) 评论(0) 推荐(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 阅读(3459) 评论(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 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(5372) 评论(7) 推荐(1) 编辑
摘要: 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 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 注 : 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 阅读(376) 评论(0) 推荐(0) 编辑
摘要: //子组件(传参数) < input type = "button" value = "提交" onClick = { ()=>{ this.props.handleChange('123') } } / > //子组件(传输入值) < input onChange = { this.props.h 阅读全文
posted @ 2020-07-03 15:48 chenlw101 阅读(342) 评论(0) 推荐(0) 编辑
摘要: const aa = [ {name:'aaa',age:1}, { name: 'bbb', age: 2 }, { name: 'cccc', age: 3 }, { name: 'aaa', age: 1 }, { name: 'bbb', age: 5 }, { name: 'aaa', a 阅读全文
posted @ 2020-04-13 15:32 chenlw101 阅读(189) 评论(0) 推荐(0) 编辑
摘要: let obj1 = { a:111, b:"hahah", c:{ name:"qaz", age:45 }, d:[1,2,3,4] } let obj2 = { a: 111, b: "hahah", c: { name: "qaz", age: 45 }, d: [1, 2, 3, 5] } 阅读全文
posted @ 2020-04-13 10:15 chenlw101 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <pre> 元素可定义预格式化的文本。被包围在 pre 元素中的文本通常会保留空格和换行符。而文本也会呈现为等宽字体。 <pre>的内容自动换行的问题(兼容多个浏览器): pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-s 阅读全文
posted @ 2020-04-13 09:37 chenlw101 阅读(227) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页