会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
糖~豆豆
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
26
27
28
29
30
31
32
33
34
···
46
下一页
2021年1月7日
使用vue创建一个吸顶的菜单项--简单版
摘要: 1.hover时候出现,总体来说只改了一下两个index.vue,还有route文件 src\layoutTwo\index.vue <template> <div class="main_container_webgl"> <!-- <div :class="classObj" class="ap
阅读全文
posted @ 2021-01-07 23:42 糖~豆豆
阅读(449)
评论(0)
推荐(0)
2021年1月6日
vue 中引入iframe,动态设置其src,遇到的一些小问题总结
摘要: 1.重置其样式,去掉外框以及滚动条等 <iframe id="myIframe" ref="iframe_a" :src="mySrc" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheig
阅读全文
posted @ 2021-01-06 00:18 糖~豆豆
阅读(7381)
评论(2)
推荐(0)
2021年1月5日
vue 解决循环引用组件/动态组件/组件未注册报错
摘要: 使用动态组件报错 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. <templa
阅读全文
posted @ 2021-01-05 22:38 糖~豆豆
阅读(2489)
评论(1)
推荐(0)
2021年1月4日
VUE引入自定义文字方式
摘要: 单vue文件引入老是报错,所以我用了全局引入 1.先在assets里新建font文件夹,把字体放进去,然后在字体旁边新建font.less, font.less内容如下: @font-face{ font-family: 'aaabbb'; src: url('./aaa-bbb.otf'); fo
阅读全文
posted @ 2021-01-04 23:15 糖~豆豆
阅读(291)
评论(0)
推荐(0)
2020年10月23日
node.js接收前端上传的文件并保存到其他位置+后端代码支持进度条
摘要: 一:直接上传文件,放入body里 1.前端代码 <input type="file" onchange="sendFiles(this.files)"> <script> function sendFiles(files) { const reader = new FileReader(); con
阅读全文
posted @ 2020-10-23 01:18 糖~豆豆
阅读(7640)
评论(0)
推荐(0)
webSocket前端+nodejs后端简单案例多人在线聊天
摘要: 一:下面是一个简单的案例,回车发送消息,多人在线聊天 1.前端代码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>WebSocket Chat</title> </head> <body> <script type="text
阅读全文
posted @ 2020-10-23 01:17 糖~豆豆
阅读(603)
评论(0)
推荐(0)
2020年10月22日
在函数中设置input的multiple属性以及input的点击事件时,设置失效
摘要: 1.在函数中先设置input文件可以多选,然后再设置input框的点击事件情况下,有时候这个多选设置会失效. 我们可以采用下面的方式去解决 <input ref="myInputRef" type="file" class="my_input" :multiple="myMultiple" styl
阅读全文
posted @ 2020-10-22 01:07 糖~豆豆
阅读(1252)
评论(0)
推荐(0)
chrome实现下载文件JS代码弹出'另存为'窗口
摘要: 1.TXT类型文件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title
阅读全文
posted @ 2020-10-22 00:24 糖~豆豆
阅读(9627)
评论(2)
推荐(0)
2020年10月21日
angular8实现前端携带cookie发送给后端+nodejs获取前端发送的cookie
摘要: 1.前端测试代码angular8 // 测试代码 testCookie() { const url = 'http://10.11.11.11:3000/test/cookie' const params = {a:1} // {withCredentials: true} 这个是重点!!!! th
阅读全文
posted @ 2020-10-21 23:39 糖~豆豆
阅读(660)
评论(0)
推荐(0)
2020年10月13日
echarts图例过多,折线过多颜色不知道怎么分配怎么办??优化如下
摘要: 优化一:很简单,echarts自身支持legend图例分页,加了分页就优化了图例过多情况。 legend['type']: 'scroll', // 添加这一行代码即可实现图例分页功能 option = { title: { text: '折线图堆叠' }, tooltip: { trigger:
阅读全文
posted @ 2020-10-13 01:07 糖~豆豆
阅读(3306)
评论(0)
推荐(0)
上一页
1
···
26
27
28
29
30
31
32
33
34
···
46
下一页
公告
Live2D