# http://localhost:8080/h2-console spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver #进行该配置后,每次启动程序,程序都会运行resou ...
分类:
其他好文 时间:
2020-06-13 10:40:23
阅读次数:
88
1.for循序迭代 var a=[1,2,3,4]; for(var i=0;i<a.length;i++){ console.log(a[i]); } 2.in循环迭代 var a=[1,2,3,4]; for(var i in a){ console.log(a[i]); } 3.forEach ...
分类:
Web程序 时间:
2020-06-13 10:37:01
阅读次数:
99
三位一逗:使用“N”(使用n也可以,不区分大小写),“N”后面的数字是小数位数 //三位一逗,保留5位小数 Console.WriteLine($"{9999.12345.ToString("N5")}"); //三位一逗,四舍五入,保留2位小数 Console.WriteLine($"{9999. ...
分类:
其他好文 时间:
2020-06-12 20:22:39
阅读次数:
171
1.查看某个主题下面的消息 bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic web_douyin_author --from-beginning 2.查看所有主题 bin/kafka-topics.sh ...
分类:
其他好文 时间:
2020-06-12 20:03:06
阅读次数:
55
一、Eruda 或者 vconsole.js Eruda 是一个专为手机网页前端设计的调试面板,类似 DevTools 的迷你版,其主要功能包括:捕获 console 日志、检查元素状态、捕获XHR请求、显示本地存储和 Cookie 信息等等。 github 地址:https://github.co ...
分类:
移动开发 时间:
2020-06-12 19:56:42
阅读次数:
302
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Utilities; us ...
2009年,Node.js 项目诞生,所有模块一律为 CommonJS 格式。 时至今日,Node.js 的模块仓库 npmjs.com ,已经存放了15万个模块,其中绝大部分都是 CommonJS 格式。 这种格式的核心就是 require 语句,模块通过它加载。学习 Node.js ,必学如何使 ...
分类:
其他好文 时间:
2020-06-12 10:32:21
阅读次数:
36
一、检测是否为数组 // 方式一 ES3 适用于只有一个全局环境 value instanceof Array// 方式二 ES5语法Array.isArray()例子: let arr=[1,‘hello’] console.log(arr instanceof Array) // true co ...
分类:
编程语言 时间:
2020-06-12 01:16:22
阅读次数:
80
1 : 2 : 3 : 4 : { "Print to console": { "prefix": "vue", "body": [ "<!-- $1 -->", "<template>", "<div class='$2'>$5</div>", "</template>", "", "<scrip ...
分类:
其他好文 时间:
2020-06-11 21:58:31
阅读次数:
68
//主线程直接执行 console.log('1'); //丢到宏事件队列中 setTimeout(function() { console.log('2'); process.nextTick(function() { console.log('3'); }) new Promise(functi ...
分类:
其他好文 时间:
2020-06-11 20:07:47
阅读次数:
69