02 2020 档案

react 实战:写一个年份选择器
摘要:上代码。 组件的Js文件。 import React, { Component } from "react"; import Style from './myYearSelect.less' function getOffsetTop(el){ return el.offsetParent ? el 阅读全文

posted @ 2020-02-16 20:33 fox_charon 阅读(443) 评论(0) 推荐(0)

微信小程序实战:表单与选择控件的结合
摘要:先上代码。 login.wxml <mp-toptips msg="{{error}}" type="error" show="{{error}}"></mp-toptips> <view class="page-body"> <mp-form id="form" rules="{{rules}}" 阅读全文

posted @ 2020-02-04 20:35 fox_charon 阅读(2015) 评论(0) 推荐(0)

微信小程序实战:app主页面保存page页面实例
摘要:先上代码。 app.js //app.js App({ onLaunch: function () { // 登录 wx.login({ success: res => { if (this.globalData.pageObject.index.setData) { this.globalData 阅读全文

posted @ 2020-02-04 14:37 fox_charon 阅读(574) 评论(0) 推荐(0)

antd踩坑:value.locale is not a function
摘要:这个问题来源于日期选择器 RangerPicker 的特殊情况。 <Col span={7} key={9}> <FormItem label="投运时间" {...formItemLayout2}> {getFieldDecorator('tysj', { initialValue: [undef 阅读全文

posted @ 2020-02-02 14:39 fox_charon 阅读(6681) 评论(0) 推荐(0)

导航