会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
新恒
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2023年11月27日
vue实现页面全屏、局部全屏等多方式全屏
摘要: 1、vuex创建全局变量在store/index中: import Vuex from 'vuex' Vue.use(Vuex) const user = { state: { // 全屏 fullscreen: false, }, mutations: { // 全屏 SET_FULLSCREEN
阅读全文
posted @ 2023-11-27 11:26 新恒
阅读(1499)
评论(0)
推荐(0)
2023年10月11日
input的原生输入事件
摘要: <!--input只允许输入整数--> <input type="text" name="a" onkeyup="value=value.replace(/[^\d]/g,'')" > <!--input只允许输入整数和小数(小数只保留小数点后两位)--> <input type="text" na
阅读全文
posted @ 2023-10-11 11:26 新恒
阅读(211)
评论(0)
推荐(0)
2023年9月18日
前端一些常用的正则表达式
摘要: 一、校验数字的表达式 1 数字: ^[0-9]$ 2 n位的数字: ^\d{n}$ 3 至少n位的数字: ^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-
阅读全文
posted @ 2023-09-18 15:48 新恒
阅读(184)
评论(0)
推荐(0)
2022年7月2日
npm install 安装node-sass报错,因为nodejs版本的问题
摘要: npm install 安装node-sass一直报错,切换淘宝镜像,安装python2、python3,安装一推插件,创建.npmrc文件等等都解决不了我的问题,最终发现是因为nodejs与node-sass版本不匹配导致 所以因此需要更改我的node版本,但由于多个项目对应的node版本不一致,
阅读全文
posted @ 2022-07-02 18:09 新恒
阅读(3302)
评论(0)
推荐(0)
2021年12月6日
vue cli3的多环境配置
摘要: vue项目开发时,会有不同的运行环境,例如:开发环境、测试环境、生产环境,本文详细介绍一下vue3的环境配置步骤: 1.在根目录下建三个文件 注意:.env文件中变量命名 必须以 VUE_APP_ 开头.env.development:开发环境文件 NOVE_ENV = 'development'
阅读全文
posted @ 2021-12-06 11:56 新恒
阅读(780)
评论(0)
推荐(0)
2021年7月29日
get请求多参数循环拼接
摘要: filterParams = { businessId: '', deptId: '', activityName: '', seekerUserName: '', accountSet: '', publishName: '', settlementTimeStart: '', settlemen
阅读全文
posted @ 2021-07-29 17:49 新恒
阅读(593)
评论(0)
推荐(0)
2021年7月1日
vue3.0---watch使用方法
摘要: <template> <div> watch监听ref属性值:{{a}} <el-button type="primary" @click="plusFn">ref加1</el-button> </div> <div> watch监听reactive属性值:{{b}} <el-button type
阅读全文
posted @ 2021-07-01 17:30 新恒
阅读(1035)
评论(0)
推荐(0)
2021年4月21日
小程序picker自定义三级联动
摘要: wxml; <picker name="create_id" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindGradeChange" value="{{multiIndex}}" range
阅读全文
posted @ 2021-04-21 10:27 新恒
阅读(1114)
评论(0)
推荐(0)
无法加载文件 D:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息
摘要: 使用vue-cli3.0以上版本创建项目,然后引入插件,vue add element,报错:vue : 无法加载文件 D:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:(已解决) 解决办法: 1.以
阅读全文
posted @ 2021-04-21 10:22 新恒
阅读(1791)
评论(0)
推荐(0)
2020年7月28日
vue 移动端手写手机验证码登录
摘要: <template> <div class="contentLogin"> <!-- <div class="login">登录</div> --> <div class="contrain"> <form class="form" action=""> <div class="formItem">
阅读全文
posted @ 2020-07-28 13:59 新恒
阅读(1062)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告