NodeJS连接MongoDB数据库 连接数据库的js文件【我将其命名为(connect.js)】 // 引入mongoose第三方模块 const mongoose = require('mongoose'); // 连接数据库 // 第一个要写数据库的地址及其名字 // 还有, 这是一个独立的模 ...
分类:
数据库 时间:
2020-12-02 12:04:32
阅读次数:
10
数据结构实验之排序四:寻找大富翁 Code: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1010; 4 const int minn = -10001; 5 6 int a[25]; 7 int n,m; ...
分类:
编程语言 时间:
2020-12-02 12:03:32
阅读次数:
6
基环树 基环树直径 P3248 #include<bits/stdc++.h> using namespace std; #define ll long long const int N=1e5+5; int n; int te,v[N<<1],pre[N<<1],tail[N]; ll L,len ...
分类:
其他好文 时间:
2020-12-01 12:29:19
阅读次数:
7
Rest 参数与 spread 扩展运算符在ES6中已经引入,不过ES6只针对于数组。 在ES9中为对象提供了像数组一样的 rest 参数和 扩展运算符 1. 输出 function connect({host,port,userName,password}){ console.log(host) ...
分类:
其他好文 时间:
2020-12-01 12:09:18
阅读次数:
6
js: // 规则库上传前检查格式 beforeUploadCheck = (file, fileList) => { return new Promise(function(resolve,reject){ Modal.confirm({ content: intl.get('Intl_uploa ...
分类:
Web程序 时间:
2020-12-01 12:04:11
阅读次数:
9
const fs = require('fs'); // 读取文件 function readStudy() { return new Promise((resolve,reject) = >{ fs.readFile("./resoureces/style.md",(err,data)=>{ // ...
分类:
其他好文 时间:
2020-12-01 12:03:14
阅读次数:
2
sscanf()的使用 函数原型: int sscanf( const char *buffer, const char *format [, argument ] ... ); ...表示是一个多参函数,其实就和scanf是一样的,只是从命令行变成了从str中读取 针对于第二个const char ...
分类:
其他好文 时间:
2020-12-01 11:51:35
阅读次数:
2
例如:按照department_id查询employees(员工表)和departments(部门表) 的信息。 方式一(通用型):SELECT … FROM … WHERE SELECT e.last_name,e.department_id,d.department_name FROM empl ...
分类:
数据库 时间:
2020-11-30 16:13:26
阅读次数:
16
例如,我们要访问 info 对象的 animal 的 reptile 的 tortoise。但是我们不确定 animal,reptile是否存在,因此我们需要这样写: const tortoise = info.animal && info.animal.reptile && info.animal ...
分类:
其他好文 时间:
2020-11-30 16:02:30
阅读次数:
5
一.hal层入口 Lights.c (vendor\mediatek\proprietary\hardware\liblights) char const*const RED_LED_FILE = "/sys/class/leds/red/brightness"; char const*const ...
分类:
其他好文 时间:
2020-11-30 15:43:58
阅读次数:
5