- 博客(13)
- 收藏
- 关注
原创 react-native 在app内打开外部链接
安卓新增跳转页面,内容如下 import React, {Component} from 'react'; import {View, Platform} from 'react-native'; import base from '../../styles/base'; import {WebView} from 'react-native-webview'; class MedicalCriticalUrl extends Component<Props> { co
2022-02-16 13:52:02
2064
原创 Flatlist不渲染
react-native项目,Flatlist组件封装后,引用时在页面中不渲染。之前子组件是这样写的render() { const { evaluationAllList } = this.props.evaluationReducer; console.log("evaluationAllList",evaluationAllList); return ( <View> <FlatList style={{
2021-12-24 09:55:44
865
原创 TypeError: ctor is not a constructor报错
今天写rn项目的时候,新增页面突然报了个TypeError: ctor is not a constructor的错误export default connect( (state) => { const {evaluationReducer} = state; return { evaluationReducer, }; }, { queryMyEvaluationList, queryMoreMyEvaluationList, }
2021-12-23 18:36:57
2284
原创 js N天前的日期获取
fun_date(num) { var date1 = new Date() //今天时间 var time1 = date1.getFullYear() + '-' + (date1.getMonth() + 1) + '-' + date1.getDate() var date2 = new Date(date1) date2.setDate(date1.getD.
2021-08-27 17:13:35
140
原创 element ui不显示dialog右上角的X
<el-dialog title="提示" :visible.sync="dialogShow" width="20%" center :destroy-on-close="true" :show-close="false" >不显示dialog右上角的 X:destroy-on-close=“true”:show-close=“false”
2021-06-29 09:51:32
2483
1
原创 RN Adb connection Error:远程主机强迫关闭了一个现有的连接。报错解决方法
RN项目启动,报错Adb connection Error:远程主机强迫关闭了一个现有的连接。原因:端口占用方法: adb kill-serveradb start-serveradb devices查看react-native run-android就好了。
2021-01-06 09:17:24
339
原创 vue-baidu-map在弹窗中第二次打开地图消失问题解决方法
vue-baidu-map在弹窗中第二次打开地图消失问题解决方法在vue(element ui)中使用vue-baidu-map,将地图放在弹窗el-dialog里面显示,第二次点击弹窗的时候地图消失,显示空白。解决方法:<el-dialog :title="dialogTitle" :visible.sync="dialogShow"> <div class="mapForm" v-if="dialogShow"> </div> </el-dialo
2020-12-24 09:36:22
1492
2
原创 el-input后面加单位,el-table每列加单位
el-input后面加单位,el-table每列加单位el-input后面加单位<el-input v-model="editForm.length"> <i slot="suffix" style="font-style:normal;margin-right: 10px;">cm</i></el-input>el-table每列加单位<el-table-column align="center" label="楼栋号">
2020-12-17 16:47:18
4800
原创 vue标准时间格式转换
标准时间格式转换转换时间格式为yyyy-MM-dd hh:mm:ss. formatDate(date,fmt){ let time = { 'M+': date.getMonth() + 1, 'd+': date.getDate(), 'h+': date.getHours(), 'm+': date.getMinutes(), 's+': date.getSeconds(), 'q+':
2020-12-17 14:46:36
1142
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人