- 博客(48)
- 收藏
- 关注
原创 [Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes.
后来才发现,我这个项目是yarn下载依赖的,但是放太久之后我忘了,用了npm下载wangeditor……删除node_modules再重新下依赖就好了。下载使用wangeditor5,但是按照官网文档也无效,一直警告。
2024-04-25 11:58:54
991
原创 “Error: [vue-composition-api] No vue dependency found.“
前提:下载了一个@vue-composition-api插件,使用后报错,但是node_modules已经有了相应的依赖。解决:把@vue-composition-api换成”@vue/composition-api": “^1.3.0”,原因:“@vue/composition-api”: “^1.7.x”,和我的"vue": “^2.6.14"不兼容。
2024-03-03 16:36:42
1001
1
原创 delete请求,express获取req.body失败
使用 Express 框架处理 DELETE 请求时,通常情况下是不会有请求体的。DELETE 请求通常用于删除资源,而不是发送数据。因此, Express 默认情况下不会解析 DELETE 请求的请求体。
2023-11-01 21:09:07
755
原创 error:Failed to parse source for import analysis because the content contains invalid JS syntax.
它还提供了一些优化和增强特性,例如热重载(Hot Module Replacement)和按需加载组件等。因此,通过导入 @vitejs/plugin-vue 插件并将其添加到插件列表中,可以在 Vite 创建的项目中使用 Vue.js 框架,并享受到相关的优化和功能增强。这两个部分的作用是将 Vue.js 框架集成到 Vite 项目中。@vitejs/plugin-vue 插件能够处理 .vue 单文件组件,将其编译为可在现代浏览器中运行的 JavaScript 代码。
2023-07-13 23:48:14
7906
原创 引入swagger报错Unable to infer base url. This is common when using dynamic servlet registration or when…
好像是springboot和swagger的版本不兼容……然后我在application.yml处加了一个。后来我调整依赖版本为。
2023-06-22 11:58:00
199
原创 Unknown custom element: <router-view> - did you register the component correctly?
但是我用的vue-router版本是4.x,不能 Vue.use(VueRouter);而我的是vue2项目。再百度了一下,发现vue2配vue-router的3.x,vue3配vue-router的4.x。然后main.js也要注入路由。
2023-05-10 19:24:38
2047
原创 oracle ORA-01005 null password given; logon denied
报错:ORA-01005 null password given
2022-11-11 09:52:23
3441
2
原创 acm 2032 杨辉三角 C++
一道水题Problem Description还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:11 11 21 1 3 3 11 4 6 4 1 15 10 10 5 1Input输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1<=n<=30),表示将要输出的杨辉三角的层数。Output对应于每一个输入,请输出相应层数的杨辉三角,每一层的整数之间用一个空格隔开,每一个杨辉三角后面加一个空行。Sample Inp
2021-11-26 13:08:28
357
原创 acm 2031 进制转换 c++
Problem Description输入一个十进制数N,将它转换成R进制数输出。Input输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R<>10)。Output为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。Sample Input7 223 12-4 3Sample Output1111B-11#include&l
2021-11-26 12:48:39
142
原创 acm 2028 求n个数的最小公倍数 c++
Problem Description求n个数的最小公倍数。Input输入包含多个测试实例,每个测试实例的开始是一个正整数n,然后是n个正整数。Output为每组测试数据输出它们的最小公倍数,每个测试实例的输出占一行。你可以假设最后的输出是一个32位的整数。Sample Input2 4 63 2 5 7Sample Output1270代码:#include<iostream>using namespace std;int MIN(int b
2021-11-25 23:07:42
205
原创 排序 C++
排序插入排序直接插入排序折半插入排序希尔排序交换排序冒泡排序快速排序选择排序简单选择排序堆排序(以大根堆为例)归并排序2-路归并排序基数排序外部排序插入排序将一个数目插入该占据的位置直接插入排序清晰解释:https://blog.youkuaiyun.com/weixin_42109012/article/details/91478883代码:#include<iostream>using namespace std;#define Max 20//排序元素个数的最大值typedef
2021-06-20 17:43:08
93
原创 二叉排序树的创建和查找 C++
/**二叉排序树的查找,如果所要查找的元素在树里面,则输出true,如果不在树里面,则输出false**/#include<iostream>using namespace std;#define EndFlag -1typedef int DataType;typedef struct BSNode//Binary Sort Tree=二叉排序树{ DataType data; struct BSNode *lchild,*rchild;}BSNode,*BS
2021-06-14 19:25:19
557
原创 折半查找--顺序表
折半查找又称二分查找。优点:比较次数少,查找速度快,平均性能好;缺点:要求待查表为有序表,且插入删除困难。因此:折半查找方法适用于不经常变动而查找频繁的有序列表。/**在有序顺序表中进行**/#include<iostream>using namespace std;#define Max 20typedef int DataType;typedef struct{ DataType *data; int length;}SqList;void I
2021-06-14 15:15:44
1046
原创 哨兵--顺序的查找
#include<iostream>using namespace std;#define Max 20typedef int DataType;typedef struct{ DataType *data; int lenght;}SqList;void InitList(SqList &L){ L.data=new DataType[Max]; L.lenght=0;}void CreateSqList(SqList &
2021-06-14 14:44:55
291
原创 两个单链表的合并 C++
#include<iostream>#include<cstdlib>using namespace std;#define OK 1;#define ERROR 0;typedef int Status;typedef int DataType;typedef struct LNode//Linked list=链表{ DataType data; struct LNode *next;}LNode,*LinkList;Status Init
2021-06-13 23:48:53
1588
1
原创 邻接表——深度优先
/**有向无权邻接表**/#include<iostream>using namespace std;/*************************无向图/网的邻接表的存储表示***********************************/#define Max 10//最大顶点数typedef char VerTexType;//定义顶点类型typedef struct ArcNode{ int adjvex;//该边所连接的顶点的邻接点的下标
2021-06-09 21:23:00
396
1
原创 无向网-邻接矩阵-深度优先
/**创建无向图的邻接矩阵**/#include <cstdlib>//exit#include <iomanip>//swet#include<iostream>//cout,cinusing namespace std;#define MAX 20#define MAXINT 39788//表示无穷大int visited[MAX]={0};//全局变量typedef char DataType;//结构类型--无向图--邻接矩阵typed
2021-06-02 22:50:21
472
原创 哈夫曼树的创建
//文件名后缀为.cpp#include <cstdio>#include <cstring>using namespace std;typedef struct{ int weight; int parent,lchild,rchild;}HTNode,*HuffmanTree;void Select(HuffmanTree &HT, int n, int &s1, int &s2){ int minum;
2021-05-18 09:19:07
442
原创 比较得出第一小和第二小
#include<stdio.h>void select(int *c,int *a,int *b,int d){ int i,j,min=c[0],k,t; for(i=0;i<d;i++) if(c[i]<min) { min=c[i]; k=i; } *a=min; t=c[0]; c[0]=c[k]; c[k]=t; mi
2021-05-17 21:06:52
88
原创 循环队列 c语言
#include<stdio.h>#include<stdlib.h>#define OK 1#define ERROR 0#define MAXSIZE 11//留一个无用的空间typedef int Status;typedef struct{ int *base; int front; int rear;}SqQueue;//队列初始化Status InitQueue(SqQueue *q){ q->base=
2021-04-27 12:34:24
61
原创 链栈的基本操作
#include<stdio.h>#include<stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int Status;typedef struct StackNode{ int data; struct StackNode *next;}StackNode,*LinkStack;//;链栈的初始化Status InitStack(LinkStack *s){
2021-04-23 19:22:14
92
原创 顺序栈的基本操作
#include<stdio.h>#include<stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2#define MAXSIZE 100typedef int Status;//定义结构体typedef struct{ int *base; int *top; int stacksize;}SqStack;//栈的创建Status InitStack(SqStack
2021-04-23 18:15:43
163
原创 顺序栈的逆序和顺序输出
#include<stdio.h>#include<stdlib.h>typedef int Status;#define OVERFLOW -1#define ERROR 0#define OK 1#define MAXSIZE 100typedef struct{ int *base; int *top; int stacksize;}SqStack;/**栈的创建**/Status InitStack(SqStack *s)
2021-04-15 23:03:00
4832
空空如也
eslint不能格式化.vue文件
2024-06-25
宜搭,怎么在公式编辑中计算百分比的和?
2024-06-17
宜搭的子表单第一个行的数据,默认不能删除
2024-06-17
宜搭,为表单控件绑定变量时,报错
2024-06-04
关于Echarts的偏移
2024-05-13
vant的tabs加上swipeable或animated属性会出错
2023-05-12
iconv,node 爬虫,中文乱码
2023-04-10
text-align的小问题
2023-01-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人