会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
1
2 3 4
红鲤鱼与LV
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
2019年11月29日
压缩图片网站
摘要: tu
阅读全文
posted @ 2019-11-29 11:33 红鲤鱼与LV
阅读(154)
评论(0)
推荐(0)
2019年11月27日
vscode存盘时格式化
摘要: 1.文件-》首选项-》设置
阅读全文
posted @ 2019-11-27 23:26 红鲤鱼与LV
阅读(110)
评论(0)
推荐(0)
两个i标签之间有缝隙
摘要: 给i标签的父元素设置font-size:0;
阅读全文
posted @ 2019-11-27 15:19 红鲤鱼与LV
阅读(211)
评论(0)
推荐(0)
2019年11月26日
node 中process进程argv,argv0,execArgv,execPath
摘要: 1.argv const {argv,argv0,execPath v,execPath} = process;argv.forEach(item=>{ console.log(item); }} argv打印出来是一个数组,第一个值是 启动它的命令node安装的路径。 第二个值是当前执行的文件路径
阅读全文
posted @ 2019-11-26 18:35 红鲤鱼与LV
阅读(614)
评论(0)
推荐(0)
chalk插件 使终端输出的字带颜色
摘要: 1.使终端输出红色字体: const chalk = require('chalk'); console.log(chalk.red('this is red!') 这时运行终端,打印的this is red!就是红色的。 使用这个插件还可以使终端打印的字加下划线等等。
阅读全文
posted @ 2019-11-26 17:57 红鲤鱼与LV
阅读(546)
评论(0)
推荐(0)
Buffer转成字符串
摘要: 如果data为buffer格式,则: data.toString()。 或者data+"" , 也可以转成字符串
阅读全文
posted @ 2019-11-26 17:53 红鲤鱼与LV
阅读(8760)
评论(0)
推荐(3)
node 的CommonJS的引入
摘要: 1.CommonJS 每个文件是一个模块,有自己的作用域 引入:
阅读全文
posted @ 2019-11-26 17:48 红鲤鱼与LV
阅读(297)
评论(0)
推荐(0)
node中controller的get和post方法获取参数
摘要: 1.get: const body = ctx.query; // get请求 2.post: const body = ctx.request.body; // post请求
阅读全文
posted @ 2019-11-26 16:23 红鲤鱼与LV
阅读(591)
评论(0)
推荐(0)
curl使用
摘要: 1.复制: 2.粘贴到终端,回车。就运行啦 3.额外附赠小知识: 到终端粘贴,后面加上 -o,就可以保存啦。有些不能下载的音频视频可以这样保存。 4.下面是别人写的,我看着挺好的: https://blog.csdn.net/fdipzone/article/details/78828617
阅读全文
posted @ 2019-11-26 14:42 红鲤鱼与LV
阅读(201)
评论(0)
推荐(0)
一个用于格式化和处理数字的javascript库----Numeral.js
摘要: npm地址:https://www.npmjs.com/package/numeral 1.转化成百分比: numeral(num).format('0.00%')
阅读全文
posted @ 2019-11-26 14:10 红鲤鱼与LV
阅读(994)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
公告