- 博客(31)
- 收藏
- 关注
原创 react创建新项目遇到的问题
index.js:9 Warning: You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".
2023-12-29 10:25:48
499
原创 将标准时间转为几分钟前,几小时前,几天前...
js// 将日期改为几天前,几小时前用。。。 diffTime(val) { let dateTimeStamp = val if (dateTimeStamp) { if (!(new Date())) { return '刚刚' } dateTimeStamp = new Date(val).getTime() } var minute = 1000 * 60; var hour = minute * 60;
2022-04-02 09:41:00
122
原创 手机号码校验(手机号---座机号)
<van-field v-model="formData.contactNumber" required label="联系电话" maxlength="16" placeholder="请填写联系电话" :rules="[ { required: true, message: '请填写联系电话' }, ..
2022-03-28 14:05:52
851
原创 vant组件文件上传
HTML <van-field name="uploader" label="附件"> <template #input> <van-uploader type="file" max-count="9" capture="camcorder" accept="image/*"
2022-03-24 13:53:14
1182
原创 项目每个页面只能进入一次其数据刷新,当回退重新进入页面不刷新
原因:keepalive会缓存组件,要通过他对应的生命周期才会触发重进组件created跟mounted生命周期就不会生效了,只会触发activated跟deactivated这俩keepAlive专用的生命周期,所以去掉keepalive
2022-03-18 11:50:46
572
原创 vue项目运行报错 _vue-router@4.0.12@vue-router in ./node_modules/cache-loader/dist/cjs.js
vue项目运行报错
2022-03-05 18:41:57
576
原创 Echarts数据渲染并循环遍历
HTML <!-- echart图表 --> <div class="echart_box" v-for="(item, index) in chartList" :key="index"> <div class="echart_con"> <div> 审批中(件):<span>{{ item.applyd }}</span> </div> .
2022-03-02 11:29:20
3631
1
原创 echarts页面加载统计图不显示,得多次刷新
mounted() { this.initData() },//方法中使用nextTick将其包裹 this.$nextTick(function () {}
2022-03-02 11:06:53
573
原创 标准时间转年月日
// 标准时间转年月日 formatDate(date) { console.log("data=",date) return `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}`; }, // 日期确定---开始时间 confirmPickerStart(data) { console.log('日期确定触发', data) this...
2022-03-01 18:06:24
947
原创 uniapp中默认导航栏中添加按钮或者文字以及触发
"pages": [{ "path": "pages/index/index", "style": { "app-plus": { "titleNView": { "buttons": [{ //右侧操作按钮样式定义,是以数组形式定义,可定义多个 "color": "#ffffff", "fontSize": "50rpx", "float":"left",//导航栏的左右位置 "type":"back"//.
2022-02-09 12:15:56
3454
原创 首页获取code时发生重定向,手机自带返回键失效
与data同同级show() { if (window.history.length < 1) { //返回页面逻辑 console.log('返回工作台') wx.invoke( 'multiWindows_finishWidget', { agentId: '1003136' //工作台应用管...
2022-02-09 12:08:57
334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人