04 2023 档案
摘要:测试代码 共准备了以下几个测试代码: 空白对照 public List<User> test0() { return new ArrayList<>(); } for循环遍历 public List<User> test1(@RequestBody List<Integer> ids) { List
阅读全文
摘要:clipboard只有在安全域名下才可以访问(https、localhost), 而http域名下只能得到undefined。 例如现在想要实现点击"分享"按钮,将当前页面的url复制到剪贴板: const clipboard = navigator.clipboard if (clipboard)
阅读全文
摘要:js颜色的单词名称字符串转为rgb颜色值 将js单词名称如red,green,blue转为rgb颜色值, 暂时没找到什么特别的方法。网上找到了颜色名称与rgb值的对应表,然后构造成map获取rgb值。 代码放在: https://github.com/lxmghct/my-vue-component
阅读全文
摘要:问题描述 浏览器对于type="password"的输入框会自动填充密码,但有时出于安全或者其他原因,我们不希望浏览器记住并自动填充密码。通过网上查到的一些解决方案,可以总结出以下几种解决方案(主要用edge浏览器进行测试): 通过autocomplete="off"/autocomplete="n
阅读全文
摘要:参考文档:https://zhuanlan.zhihu.com/p/390466860 问题描述 非el组件像原生的input、自定义组件等,无法触发el-form的rules校验,如下面的代码: <el-form ref="passwordForm" :model="passwordForm" :
阅读全文
摘要:github地址: https://github.com/lxmghct/my-vue-components 组件介绍 props: value: 输入的ip地址, 类型为字符串, 格式为xx.xx.xx.xx, default: '' disabled: 是否禁用, 类型为布尔值, default
阅读全文
摘要:github地址: https://github.com/lxmghct/my-vue-components 组件介绍 props: splitCount: 分割数量, default: 2 direction: 分割方向, 'vertical' or 'horizontal', default:
阅读全文
摘要:问题描述 在写tab切换时遇到了一个问题,以下为简化后的问题所在的代码: <img v-if="tabIndex 2" id="t1"> <div v-if="tabIndex 2" id="t2"></div> <div v-if="tabIndex 2" id="t3"></div> <div
阅读全文
摘要:参考文档:https://www.freecodecamp.org/chinese/news/the-most-popular-ways-to-make-an-http-request-in-javascript/ 1.form表单提交 <form action="http://www.baidu.
阅读全文
摘要:若依管理系统是一套基于若依框架开发的后台管理系统,它是一个前后端分离的项目,前端使用vue, Element, 后端使用Spring Boot & Security。这篇随笔中将记录一下自己在使用过程中前端使用上的一些收获和问题。 目录 1. 路由控制 1.1 简述 1.2 token的检验 1.3
阅读全文
摘要:不能将with放在insert之前,否则会报以下错误: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right synta
阅读全文