上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2020年4月21日

IE11 CSS hack

摘要: IE11 怎么做 CSS hack ? 很简单。 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .ant-form-item-control .ant-input { line-height: 0 阅读全文

posted @ 2020-04-21 17:19 fox_charon 阅读(955) 评论(0) 推荐(0) 编辑

2020年4月14日

antd实战:表单上传,文件列表的过滤与限制。

摘要: 用表单上传组件最痛苦的地方是: 他的诸多行为与纯上传组件不一样,而表单的文档关于这一块基本上没有提,只能自己试。 比如我想做一个上传前的拦截。 beforeUpload: (file, fileList) => { const isJpgOrPng = file.type 'image/jpeg' 阅读全文

posted @ 2020-04-14 11:20 fox_charon 阅读(1118) 评论(0) 推荐(0) 编辑

antd踩坑:日期选择器的可选日期控制的问题

摘要: 有一个需求是日期选择需要加一个日期限制。 于是我兴高采烈的加上去了。 // 日期可选判断方法 disabledDateFunc = current => { const { disabledDateArray } = this.state; if (disabledDateArray) { retu 阅读全文

posted @ 2020-04-14 11:12 fox_charon 阅读(3115) 评论(0) 推荐(0) 编辑

2020年3月5日

ant design pro : 依赖项 webpack-theme-color-replacer 最新版导致项目无法启动?

摘要: 重新装了一个项目的依赖,结果发现打不开了? 报错如下: This dependency was not found: * webpack-theme-color-replacer/client in ./src/components/SettingDrawer/themeColor.js To in 阅读全文

posted @ 2020-03-05 19:42 fox_charon 阅读(2829) 评论(0) 推荐(0) 编辑

SQL

摘要: SELECT * FROM users WHERE username='1' OR '1'='1' and password='1' OR '1'='1' FALSE OR TRUE AND FALSE OR TRUE FALSE OR FALSE OR TRUE FALSE OR TRUE TRU 阅读全文

posted @ 2020-03-05 15:21 fox_charon 阅读(145) 评论(0) 推荐(0) 编辑

2020年2月16日

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 阅读(403) 评论(0) 推荐(0) 编辑

2020年2月4日

微信小程序实战:表单与选择控件的结合

摘要: 先上代码。 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 阅读(1852) 评论(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 阅读(556) 评论(0) 推荐(0) 编辑

2020年2月2日

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 阅读(6491) 评论(0) 推荐(0) 编辑

2020年1月5日

Mock分页

摘要: 前后端分离开发时,一般会使用mock。 因为mock是用node运行的,行为与调用后台一致。 这样,不需要等后台写好,只要有接口文档,前端可以自己调接口,这样联调时遇到的问题会少很多,可以加快整体开发效率。 而mock作为模拟数据自然也可以做分页,用Js的方法即可。 只要传入正确的分页参数就可以分页 阅读全文

posted @ 2020-01-05 16:47 fox_charon 阅读(2094) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

导航