会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小白咚
博客园
首页
新随笔
联系
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
27
下一页
2021年1月20日
查找字符串(富文本)指定元素
摘要: let content = '<title>来自'+ this.userInfo.realName +'的分享</title><content>'+this.shareContent.title+'</content><image>'+ this.shareContent.imgList[0].ur
阅读全文
posted @ 2021-01-20 11:14 小白咚
阅读(291)
评论(0)
推荐(0)
2021年1月14日
vue 监听器watch--总结
摘要: <html> <head> <title>监听器 watch</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="root"> <h3>Watch 用
阅读全文
posted @ 2021-01-14 22:22 小白咚
阅读(198)
评论(0)
推荐(0)
vue 过滤器filter
摘要: <html> <head> <title>过滤器 filter</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="root"> <!-- |在vue
阅读全文
posted @ 2021-01-14 21:54 小白咚
阅读(120)
评论(0)
推荐(0)
2021年1月13日
点击数组中某元素,移动到头部
摘要: Array.unshift(Array.splice(index,1)[0]);
阅读全文
posted @ 2021-01-13 11:59 小白咚
阅读(215)
评论(0)
推荐(0)
js中数组操作方法整理
摘要: js中数组操作方法整理 https://www.jianshu.com/p/22a4c0b514fa 常见方法,一看就会用的,就不代码去实现操作了,复杂的就demo一下。 1. join() 功能:将数组中所有元素都转化为字符串并连接在一起。 2. reverse() 功能:将数组中的元素颠倒顺序。
阅读全文
posted @ 2021-01-13 11:44 小白咚
阅读(401)
评论(1)
推荐(0)
2021年1月5日
node学习资料
摘要: 《nodej技术栈》 https://www.nodejs.red/#/ts/basis node专业中文社区 https://cnodejs.org/ Nodejs Web开发 https://hub.fastgit.org/Web-Dev-Tutor/nodejs 一杯茶的时间,上手 Expre
阅读全文
posted @ 2021-01-05 16:50 小白咚
阅读(75)
评论(0)
推荐(0)
2021年1月4日
搞node爬虫--puppeteer--记一次大坑
摘要: 解决办法:升级node,然后重新下载puppeteer插件 设置淘宝镜像下载 npm config set puppeteer_download_host=https://npm.taobao.org/mirrors npm install puppeteer 问题:报错 (node:828) Un
阅读全文
posted @ 2021-01-04 21:52 小白咚
阅读(3513)
评论(1)
推荐(0)
箭头函数vs匿名函数
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
posted @ 2021-01-04 11:26 小白咚
阅读(420)
评论(0)
推荐(0)
2020年12月31日
利用伪元素--给标题添加下划线
摘要: .selectStyle { color: #EF420E; font-size: 35rpx; font-weight: bold; position: relative; } .selectStyle::before { content: ''; position: absolute; left
阅读全文
posted @ 2020-12-31 10:42 小白咚
阅读(886)
评论(0)
推荐(0)
2020年12月30日
HTTP 状态码
摘要: HTTP 状态码 分成五类 1xx Informational, 表示信息提示相关的 2xx Successful, 表示成功的 3xx Redirection,重定向 4xx Client Error,客户端错误 5xx Server Error,服务器错误 1xx Informational,
阅读全文
posted @ 2020-12-30 15:20 小白咚
阅读(101)
评论(0)
推荐(0)
2020年12月28日
Buffer 流文件
摘要: /* 什么是 Buffer? Buffer 就是 Node.js 处理二进制数据的容器 在 ES6 之前,JS 并没有处理二进制的机制, 在 ES6 之后,JS 使用了 TypedArray 里的 Uint8Array 作为 Buffer 的底层 Buffer 类似于整数的数组,但是长度受限(8bi
阅读全文
posted @ 2020-12-28 17:28 小白咚
阅读(772)
评论(0)
推荐(0)
事件(Event)机制 .on() .emit() .once() .removeListener()
摘要: // 事件(Event)机制 const EventEmitter = require('events'); const emitter = new EventEmitter(); // 侦听一个事件 emitter.on("a", (event) => { console.log(event +
阅读全文
posted @ 2020-12-28 16:28 小白咚
阅读(1323)
评论(0)
推荐(0)
UDP node客户端和服务端
摘要: 创建 UDP 服务器 const dgram = require('dgram'); const server = dgram.createSocket('udp4'); // 创建 message 事件的接收器 server.on('message', (msg, rinfo) => { cons
阅读全文
posted @ 2020-12-28 15:45 小白咚
阅读(210)
评论(0)
推荐(0)
node全局变量 node定时器 系统自带的模块 http服务器
摘要: for(var k of Object.keys(global)){console.log(k)} global clearInterval clearTimeout setInterval setTimeout queueMicrotask clearImmediate setImmediate
阅读全文
posted @ 2020-12-28 13:59 小白咚
阅读(138)
评论(0)
推荐(0)
标题省略,不会自动换行
摘要: { overflow: hidden; text-overflow: ellipsis; // 显示省略符号来代表被修剪的文本 white-space: nowrap; // 文本不会换行,文本会在在同一行上继续 display: block; // 此元素将显示为块级元素,此元素前后会带有换行符
阅读全文
posted @ 2020-12-28 10:09 小白咚
阅读(138)
评论(1)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
27
下一页