- 博客(24)
- 收藏
- 关注
原创 Vuex的基础使用
Vuex的基础使用,包含了下载配置vuex,state、getters、mutations、actions模块的用法以及相对应的辅助函数mapGetters、mapMutations、mapActions的使用,最后介绍了一下module以及命名空间
2022-11-24 00:02:16
189
原创 使用Canvas画布实现简单的计时器功能
/从-90度开始,也就是-pi/2 = -90 * pi / 180。//计算新的角度, 秒数 每一个 6 度 6 / 180 = 30。//设置新原点 将150,150设置为新的坐标中心。
2022-09-25 14:07:54
493
原创 Vue3+Typescript列表内容监听和fetch函数使用的注意事项
在使用富文档编辑器的时候,使用fetch函数将后端传输的URL链接转换为HTML代码并绑定到富文本的显示内容中,同时通过startWatch监听富文本内容是否改变,需要实现的是,在通过fetch函数获取到富文本的HTML内容后,开始监听富文本内容是否改变,如果改变,则将showModalTips的值修改为true。else里面的监听内容代码必须执行,在jumpUrlType为2时,执行else的内容,同时,如果jumpUrlType为0时,在修改富文本内容之后,再开始监听内容是否改变。...
2022-08-12 16:20:20
918
原创 Vue3.2+setup语法糖+ts+ElementUI-全局样式变量的配置
在设计CSS样式的过程中,为了保证样式的统一性,通常会定义一些全局预定义变量,基于sass (css预处理器) 在Vue3.2中使用这些变量
2022-06-15 17:17:13
856
原创 新建SpringBoot项目并整合MyBatisPlus
之前写过一个傻瓜式的Spring Boot + Vue.js 前后端数据交互,但是后端创建部分的内容,这里对那一部分内容做了简化,同时引入了CodeGenerater类,可以直接创建数据表对应的类。
2022-05-05 22:07:39
1499
原创 JavaScript 回溯算法的基本实现
回溯算法通常是应用在路径查找的相关问题中,有两个关键点,**①对于已走过的路径进行标注,防止走回头路;** **②应用递归算法找到路径,向上下左右四个方向进行递归。** 可能这样讲不太明白,以《剑指Offer》上的例题来研究以下!
2022-04-18 05:27:13
491
原创 @GetMapping 的使用方法(从MySQL数据库中读取数据)
本文章是在上一篇 Springboot+Vue+Element UI+MySQL实现简单的页面验证登录及前后端数据传递 的基础上完成
2022-04-03 05:37:06
2741
原创 Springboot+Vue+Element UI+MySQL实现简单的页面验证登录及前后端数据传递
① 使用Vue+Element UI创建简单的登录页面创建Vue项目:命令行进入项目文件夹,输入:vue create spring_vue_project(项目名)启动Vue项目:进入vue项目文件夹,输入:cd spring_vue_project启动项目,输入:npm run serveVue项目文件简单介绍:node_modules: 存包管理的一些依赖,如果项目需要上传到版本控制平台,不建议上传此文件夹(拷贝下来的项目可以通过 npm i 进行下载publi
2022-03-27 02:38:48
2117
2
原创 LeetCode第一个缺失的正整数
LeetCode: First Missing Positive问题描述Given an unsorted integer array nums, return the smallest missing positive integer.You must implement an algorithm that runs in O(n) time and uses constant extra space.Example1Input: nums = [1,2,0]Output: 3Examp
2022-01-29 21:29:42
444
原创 LeetCode最长有效括号
LeetCode: Longest Valid Parentheses问题描述Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.Example1Input: s = “(()”Output: 2Explanation: The longest valid parentheses su
2022-01-26 02:34:43
770
原创 LeetCode下一个排列
LeetCode: Next Permutation问题描述A permutation of an array of integers is an arrangement of its members into a sequence or linear order.For example, for arr = [1,2,3], the following are considered permutations of arr: [1,2,3], [1,3,2], [3,1,2], [2,3,1].
2022-01-23 07:38:31
467
原创 LeetCode规定数量的 ‘(‘ 和 ‘)‘ 的组合 (函数嵌套)
LeetCode: Generate Parentheses问题描述Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.Example1Input: n = 3Output: ["((()))","(()())","(())()","()(())","()()()"]Example2Input: n = 1Output: ["()"]
2022-01-11 21:35:23
475
原创 LeetCode有最多水的容器
LeetCode: Container With Most Water问题描述You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i,height).Find two lines that together with the x-axis form a containe
2022-01-07 20:31:16
292
原创 LeetCode正则表达式匹配
LeetCode: Regular Expression MatchingGiven an input string s and a pattern p, implement regular expression matching with support for ’ . ’ and ’ * ’ where:’ . ’ Matches any single character’ * ’ Matches zero or more of the preceding element
2022-01-07 10:14:59
348
原创 LeetCode最长回文子串
LeetCode:Longest Palindromic Substring问题描述Given a string s, return the longest palindromic substring in s. 给一个数组s, 返回s中最长的回文子串Example1Input: s = “babad”Output: “bab”Explanation: “aba” is also a valid answer.Example2Input: s = “cbbd”Output: “bb”
2022-01-02 07:56:46
256
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人