- 博客(10)
- 收藏
- 关注
原创 form 循环验证
1.html,其中,model绑定循环出的item,ref,因为要作为标识符,所以,采用item+下标来表示 <div class="activityListItem" v-for="(item,index) in form.seducStopActivityVoList" :key="index"> <el-form :model="item" :ref="'item'+index" :rules="itemInfoRulse">
2022-02-28 16:40:52
334
原创 简单的sockte使用
1.socket.js/* * @Author: 苏宇轩 * @Date: 2022-02-22 13:41:38 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-02-23 09:55:07 * @Description: websocket Js */import store from '@/store/index'var url = 'ws://10.0.0.12:9999//webSocket/'va
2022-02-28 14:04:48
323
原创 简单的前端正则校验
1.编写vertify文件//金钱校验export const moneyFix = (rule, value, callback) => { const reg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/; const reg1 = /0[1-9]$|^[1-9][0-9]?$|^00?\.(?:0[1-9]|[1-9][0-9]?)$|^(?:0[1-9]|[1-9][0-9]?)\.[0-9]/; if (!val
2022-02-28 13:59:54
424
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人