摘要: rules:{ LocalContactsPhone: [ { required: false, message: '请输入手机号', trigger: 'change' }, { pattern: /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/, message: 阅读全文
posted @ 2022-08-17 17:56 热爱前端的5号机器 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: 1.下载axios npm install axios --save 2.在scr目录下自定义一个 reques t文件夹 3.在刚刚建的文件夹中创建一个引入axios的api.js文件 4.api.js里引入 import axios from 'axios' 5.设置默认前缀以及请求时间传参类型 阅读全文
posted @ 2022-08-16 15:21 热爱前端的5号机器 阅读(1938) 评论(1) 推荐(0) 编辑
摘要: 两个 不同页面跳转时加上同一个标识 比如 uni.navigateTo({ url: './recordDetails?TitleId =' + 2 }) 然后 在需要改变Title的页面接收 onLoad(options) { options.TitleId == 2 ? uni.setNavig 阅读全文
posted @ 2022-08-04 09:44 热爱前端的5号机器 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 1.单页面时使用 <img v-for="(item,index) in imgArr" :key="index" :src="item" alt="" height="58px" width="58px" style="margin-right: 16px;" onerror="this.src= 阅读全文
posted @ 2022-07-15 14:08 热爱前端的5号机器 阅读(383) 评论(0) 推荐(0) 编辑
摘要: let endTime = setInterval(function () { }, 10000); for (let i = 1; i <= endTime; i++) { clearInterval(i); } 变量end拿到的 其实是当前定义的这个定时器的索引 那么我们拿到这个索引值是项目中最 阅读全文
posted @ 2022-07-14 15:54 热爱前端的5号机器 阅读(508) 评论(0) 推荐(0) 编辑
摘要: <el-select size="mini" v-model="ruleForm.sonWlan" filterable clearable allow-create placeholder="井号" v-on:change="sonWlanChange" class="form_heigth_wi 阅读全文
posted @ 2022-07-05 10:53 热爱前端的5号机器 阅读(636) 评论(0) 推荐(0) 编辑
摘要: let arr = [ { "name": "123", "Id": "11", "State": 2 }, { "name": "123", "Id": "11", "State": 2 }, { "name": "789", "Id": "22", "State": 1 }] function 阅读全文
posted @ 2022-06-29 11:01 热爱前端的5号机器 阅读(187) 评论(0) 推荐(0) 编辑
摘要: copyText(){ let text = '要复制的文本内容' uni.setClipboardData({ data: text , success: function (res) { console.log('复制的信息:',text ); uni.showToast({ title: '复 阅读全文
posted @ 2022-06-21 20:50 热爱前端的5号机器 阅读(2915) 评论(0) 推荐(0) 编辑
摘要: <script> let list = [{ Id: 215, TypeName: '乔木', Name: '枣树', Pinyin: 'ZS', FirstPinyin: 'Z' }, { Id: 216, TypeName: '乔木', Name: '皂荚', Pinyin: 'ZJ', Fir 阅读全文
posted @ 2022-06-21 11:49 热爱前端的5号机器 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 动态绑定的value是可以传入对象 阅读全文
posted @ 2022-06-10 16:42 热爱前端的5号机器 阅读(230) 评论(0) 推荐(0) 编辑