摘要:
<article ref='articleHeight' class="show-list" style="height: calc(100vh - 46px - 38px - 38px)"> <div ref='listHeight'> 遍历的内容 </div> </div> mounted () 阅读全文
posted @ 2021-07-24 16:45
争渡~
阅读(165)
评论(0)
推荐(0)
|
摘要:
<article ref='articleHeight' class="show-list" style="height: calc(100vh - 46px - 38px - 38px)"> <div ref='listHeight'> 遍历的内容 </div> </div> mounted () 阅读全文
posted @ 2021-07-24 16:45
争渡~
阅读(165)
评论(0)
推荐(0)
摘要:
<article onScroll={this.handleScroll.bind(this)} ref="scrollWrap" data-scroll={'yes'} style={{ "height": "calc(100vh - 3.5rem)", "overflow": 'auto', " 阅读全文
posted @ 2021-07-24 16:27
争渡~
阅读(200)
评论(0)
推荐(0)
摘要:
参考文档:https://www.cnblogs.com/hjvsdr/p/6639649.html 阅读全文
posted @ 2021-07-01 15:57
争渡~
阅读(90)
评论(0)
推荐(0)
摘要:
selectPhoneNumber(str) { var regx = /(1[3|4|5|7|8][\d]{9}|0[\d]{2,3}-[\d]{7,8}|400[-]?[\d]{3}[-]?[\d]{4})/g; var phoneNums = str.match(regx); if (phon 阅读全文
posted @ 2021-07-01 15:56
争渡~
阅读(1153)
评论(0)
推荐(0)
摘要:
1.应用的生命周期 App({ onLaunch: function() { // Do something initial when launch. }, onShow: function() { // Do something when show. }, onHide: function() { 阅读全文
posted @ 2021-02-28 15:35
争渡~
阅读(88)
评论(0)
推荐(0)
摘要:
1. 挂载卸载过程 constructor() componentWillMount() render() componentDidMount() componentWillUnmount () 2. 更新过程 componentWillReceiveProps (nextProps) (写在组件的 阅读全文
posted @ 2021-02-27 11:03
争渡~
阅读(52)
评论(0)
推荐(0)
摘要:
参考文档:https://www.cnblogs.com/zwh0910/p/13994291.html 阅读全文
posted @ 2021-01-26 20:42
争渡~
阅读(141)
评论(0)
推荐(0)
摘要:
参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/lifetimes.html 阅读全文
posted @ 2021-01-23 17:13
争渡~
阅读(507)
评论(0)
推荐(0)
摘要:
Redux 是 JavaScript应用的状态容器,提供可预测化的状态管理。 redux的三大核心: action:用来描述将要触发的事件。 state:用来存储我们的数据。 reducer:通过触发的action事件来改变state的值。 用户通过界面组件触发ActionCreator,携带Sto 阅读全文
posted @ 2021-01-22 21:17
争渡~
阅读(104)
评论(0)
推荐(0)
摘要:
<div onClick={this.myClick}></div> <div onClick={this.myClick.bind(this, "hello")}></div> <div onClick={(e) => this.myClick(e, "hello")}></div> 阅读全文
posted @ 2021-01-21 22:07
争渡~
阅读(409)
评论(0)
推荐(0)
|