随笔分类 - Node.js
摘要:import { Injectable, Logger, OnModuleInit } from '@nestjs/common'; import amqp from 'amqplib'; import * as acm from 'amqp-connection-manager'; const l
阅读全文
posted @ 2022-03-30 14:24
吃西瓜不吐西瓜籽
摘要:###Typescript是什么 Typescript是JavaScript的超集,支持es6写法,支持面向对象的概念,如继承,泛型等,ts并不是直接在浏览器上运行的,而是需要编译器编译成纯js来运行 ###TS与JS的区别 |Typescript|JavaScript| --|--| |.ts|.
阅读全文
posted @ 2021-03-14 16:31
吃西瓜不吐西瓜籽
摘要:/** * 获取文件夹大小,单位字节 * @param file 文件夹路径 */ let sumSize = 0; public static getSpace(file:string) { //读取文件夹下内容 let files = fs.readdirSync(file); //遍历文件 f
阅读全文
posted @ 2019-03-15 10:07
吃西瓜不吐西瓜籽
摘要:function createOrderNumber($orderId) { $n = 8; //订单号年月日后位数 $len = strlen($orderId); $x = $n - $len; $str = ''; if ($x > 0) { for ($i = 1; $i <= $x; $i
阅读全文
posted @ 2018-06-25 12:45
吃西瓜不吐西瓜籽

浙公网安备 33010602011771号