1 2 3 4

11 2019 档案

摘要:tu 阅读全文
posted @ 2019-11-29 11:33 红鲤鱼与LV 阅读(149) 评论(0) 推荐(0) 编辑
摘要:1.文件-》首选项-》设置 阅读全文
posted @ 2019-11-27 23:26 红鲤鱼与LV 阅读(97) 评论(0) 推荐(0) 编辑
摘要:给i标签的父元素设置font-size:0; 阅读全文
posted @ 2019-11-27 15:19 红鲤鱼与LV 阅读(208) 评论(0) 推荐(0) 编辑
摘要:1.argv const {argv,argv0,execPath v,execPath} = process;argv.forEach(item=>{ console.log(item); }} argv打印出来是一个数组,第一个值是 启动它的命令node安装的路径。 第二个值是当前执行的文件路径 阅读全文
posted @ 2019-11-26 18:35 红鲤鱼与LV 阅读(569) 评论(0) 推荐(0) 编辑
摘要:1.使终端输出红色字体: const chalk = require('chalk'); console.log(chalk.red('this is red!') 这时运行终端,打印的this is red!就是红色的。 使用这个插件还可以使终端打印的字加下划线等等。 阅读全文
posted @ 2019-11-26 17:57 红鲤鱼与LV 阅读(521) 评论(0) 推荐(0) 编辑
摘要:如果data为buffer格式,则: data.toString()。 或者data+"" , 也可以转成字符串 阅读全文
posted @ 2019-11-26 17:53 红鲤鱼与LV 阅读(8722) 评论(0) 推荐(3) 编辑
摘要:1.CommonJS 每个文件是一个模块,有自己的作用域 引入: 阅读全文
posted @ 2019-11-26 17:48 红鲤鱼与LV 阅读(290) 评论(0) 推荐(0) 编辑
摘要:1.get: const body = ctx.query; // get请求 2.post: const body = ctx.request.body; // post请求 阅读全文
posted @ 2019-11-26 16:23 红鲤鱼与LV 阅读(573) 评论(0) 推荐(0) 编辑
摘要:1.复制: 2.粘贴到终端,回车。就运行啦 3.额外附赠小知识: 到终端粘贴,后面加上 -o,就可以保存啦。有些不能下载的音频视频可以这样保存。 4.下面是别人写的,我看着挺好的: https://blog.csdn.net/fdipzone/article/details/78828617 阅读全文
posted @ 2019-11-26 14:42 红鲤鱼与LV 阅读(196) 评论(0) 推荐(0) 编辑
摘要:npm地址:https://www.npmjs.com/package/numeral 1.转化成百分比: numeral(num).format('0.00%') 阅读全文
posted @ 2019-11-26 14:10 红鲤鱼与LV 阅读(979) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/oscar999/article/details/16342699 productsCSV(e) { const { download } = this.state; // 表头 const thead = '时间,Key,服务接口,调用量\n'; // 阅读全文
posted @ 2019-11-22 12:07 红鲤鱼与LV 阅读(450) 评论(0) 推荐(0) 编辑
摘要:i1.'最近一小时 bTime = (new Date(moment().subtract(1, "hours").format('YYYY-MM-DD hh:mm:ss ')).getTime())/1000 2.最近一天 bTime = (new Date(moment().subtract(2 阅读全文
posted @ 2019-11-22 01:16 红鲤鱼与LV 阅读(538) 评论(0) 推荐(0) 编辑
摘要:1.查看有没有绑这个host ping broker.vs.amap.com 阅读全文
posted @ 2019-11-21 18:36 红鲤鱼与LV 阅读(112) 评论(0) 推荐(0) 编辑
摘要:1.$.param(): param() 方法创建数组或对象的序列化表示形式。 序列化的值可在生成 AJAX 请求时用于 URL 查询字符串中。 第一行是原始数据,第二行是序列化后的。$.param(obj) 阅读全文
posted @ 2019-11-21 16:40 红鲤鱼与LV 阅读(369) 评论(0) 推荐(0) 编辑
摘要:1.art-template http://aui.github.io/art-template/zh-cn/docs/api.html 阅读全文
posted @ 2019-11-19 11:26 红鲤鱼与LV 阅读(187) 评论(0) 推荐(0) 编辑
摘要:1.新建一个schedule文件 2.如下代码举例 const Subscription = require('egg').Subscription; const report = require('../utils/report'); class SendMail extends Subscrip 阅读全文
posted @ 2019-11-18 18:40 红鲤鱼与LV 阅读(256) 评论(0) 推荐(0) 编辑
摘要:1.vscode打开的文件必须只包含你要调适的项目,不能同时在一个vscode打开多个项目窗口 2.点击vscode的这个小蜘蛛 3.选择添加配置 4.此时自动生成了一个文件,launch.json: 你设置name并修改路径。保存。 5.此时,按F5就可以调试了。特别有利于node找bug。 6. 阅读全文
posted @ 2019-11-18 18:35 红鲤鱼与LV 阅读(13940) 评论(0) 推荐(3) 编辑
摘要:JavaScript toJSON() 方法 定义和用法 toJSON() 方法可以将 Date 对象转换为字符串,并格式化为 JSON 数据格式。 JSON 数据用同样的格式就像x ISO-8601 标准: YYYY-MM-DDTHH:mm:ss.sssZ 实例 返回字符串的 Date 对象,并格 阅读全文
posted @ 2019-11-18 14:57 红鲤鱼与LV 阅读(2151) 评论(0) 推荐(0) 编辑
摘要:给大家推荐一个vscode匹配括号的插件: Bracket Pair Colorizer。超级好用哦 阅读全文
posted @ 2019-11-15 14:29 红鲤鱼与LV 阅读(10006) 评论(0) 推荐(1) 编辑
摘要:router.js router.get('/test/ding', controller.test.ding); // 发钉钉消息 controller文件 /** * 发钉钉 */ async ding() { const { ctx, app } = this; const { user, q 阅读全文
posted @ 2019-11-15 11:46 红鲤鱼与LV 阅读(386) 评论(0) 推荐(0) 编辑
摘要://不能选择今天之前的日期<DatePicker format={this.timeFormat} showTime placeholder="项目结束日期" disabledDate={this.disabledDate} /> disabledDate(current) { // Can not 阅读全文
posted @ 2019-11-15 11:29 红鲤鱼与LV 阅读(692) 评论(0) 推荐(0) 编辑
摘要:1。撤销修改 git checkout -- file(文件名) 命令中的--很重要,没有--,就变成了“切换到另一个分支”的命令 例: git checkout -- readme.txt 命令git checkout -- readme.txt意思就是,把readme.txt文件在工作区的修改全 阅读全文
posted @ 2019-11-13 00:09 红鲤鱼与LV 阅读(269) 评论(0) 推荐(0) 编辑
摘要:1.版本回退(切换版本) (为方便理解,假定我们现在有4版,最新的是第4版,最老的是第一版) git log 查看历史记录 git log --pretty=oneline 查看简洁版历史记录 当前版本用Head表示: git reset --hard HEAD^ 回退到上一版本(即第三版) 这时你 阅读全文
posted @ 2019-11-12 23:48 红鲤鱼与LV 阅读(442) 评论(0) 推荐(0) 编辑
摘要:numberConvertToUppercase(num) { num = Number(num); var upperCaseNumber = [ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "百", "千" ]; var leng 阅读全文
posted @ 2019-11-04 10:18 红鲤鱼与LV 阅读(293) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示