会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
越做越有,越来越好
博客园
首页
新随笔
联系
订阅
管理
2024年6月5日
vue2自定义指令,dom嵌套组件
摘要: 1、insertDom.js insertDom.js import { verifyString, extractStringVariables } from "@/utils"; import store from '@/store'; import { Input, DatePicker, M
阅读全文
posted @ 2024-06-05 11:32 春春&
阅读(82)
评论(0)
推荐(0)
2024年4月11日
directive自定义指令把文案转html+输入功能
摘要: 文案: "甲方(贷款人): 全称:$var<text_aasdrup06rc00> 法定代表人/负责人:$var<text_k2s9cffkhls00>地址:$var<text_6356yvx7oag00>\n\n乙方(借款人): 全称/姓名:(变量-姓名), 身份证号码/统一社会信用代码:(变量-
阅读全文
posted @ 2024-04-11 16:46 春春&
阅读(9)
评论(0)
推荐(0)
2023年1月10日
nginx判断路径是否含有某个参数做判断
摘要: location ^~ /api/{ if($query_string ~ "type=1" ){ proxy_pass http://127.0.0.1:8080; break; } proxy_pass http://127.0.0.1:8089; }
阅读全文
posted @ 2023-01-10 11:03 春春&
阅读(2237)
评论(0)
推荐(0)
2022年10月19日
JS大数额累加或累减
摘要: const MAX = Number.MAX_SAFE_INTEGER; const MIN = Number.MIN_SAFE_INTEGER; const intLen = `${MAX}`.length - 1; /** * @Description: 判断输入的数字是否在javascript
阅读全文
posted @ 2022-10-19 15:46 春春&
阅读(255)
评论(0)
推荐(0)
2022年8月30日
页面滚动到指定位置——js中scrollIntoView()的用法
摘要: element.scrollIntoView() 参数默认为true1.什么是scrollIntoView?scrollIntoView是一个与页面(容器)滚动相关的API 2.如何调用?element.scrollIntoView() 参数默认为true参数为true:调用该函数,页面发送滚动,使
阅读全文
posted @ 2022-08-30 16:50 春春&
阅读(2090)
评论(0)
推荐(0)
滑动加载
摘要: html <div class="message-box" data-spy="scroll" data-target="#navbar-example" data-offset="0" ref="messageList" > </div> js mounted() { // 缓存指针 let _t
阅读全文
posted @ 2022-08-30 12:14 春春&
阅读(26)
评论(0)
推荐(0)
2022年8月29日
postmassage用法
摘要: 1、主页面 allow="camera *; microphone *"作用是开放音频权限 <template> <section class="basic_data"> <iframe class="iframeRef" ref="iframeRef" allowfullscreen securi
阅读全文
posted @ 2022-08-29 10:39 春春&
阅读(186)
评论(0)
推荐(0)
2022年8月12日
vue实现录音功能js-audio-recorder带波浪图
摘要: 实现效果:可得到三种录音数据,pcm,wav,mp3 等 官方api入口:点我(网不好的童鞋可以看最下面的api截图) 官方案例入口:点我 官方源码git入口:点我 一:安装插件 js-audio-recorder cnpm i js-audio-recorder --s 二:安装将格式转换为mp3
阅读全文
posted @ 2022-08-12 19:00 春春&
阅读(3590)
评论(0)
推荐(0)
2022年7月25日
java后端分片上传接口
摘要: 文件上传工具--FileUtil package com.youmejava.chun.util; import lombok.Data; import org.apache.tomcat.util.http.fileupload.FileUtils; import java.io.File; im
阅读全文
posted @ 2022-07-25 15:23 春春&
阅读(495)
评论(0)
推荐(0)
2022年7月12日
js 设置滚动条位置为底部
摘要: if (document.getElementById("")) { document.getElementById("").scrollTop = document.getElementById("").scrollHeight; }
阅读全文
posted @ 2022-07-12 17:57 春春&
阅读(2810)
评论(0)
推荐(0)
下一页
公告