MongoDB 使用 update() 和 save() 方法来更新集合中的文档。接下来让我们详细来看下两个函数的应用及其区别。 update() 方法 update() 方法用于更新已存在的文档。语法格式如下: db.collection.update( <query>, <update>, { ...
分类:
数据库 时间:
2020-11-10 10:35:54
阅读次数:
9
查找软件: # 列出软件 tasklist # 查找 tasklist|findstr "string want to find" 关闭软件: taskkill /f /t /im "name of software" ...
Given a string s, find the length of the longest substring without repeating characters. Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc ...
分类:
其他好文 时间:
2020-11-08 17:44:10
阅读次数:
26
1、将时间先调整为20年后(比如为2030年10月1号),然后在设置里设置 暂停更新,发现此时的 暂停更新时间 被设定了在2030年,此时将系统时间改回正常时间,再次进入设置里的 暂停更新,发现时间还定位在2030年,perfect,成功欺骗了win10系统。 2、将windows update 服 ...
for (var m = 0; m < oneList.length; m++) { $('#grid tr').find('td:eq('+oneList[m]+')').hide(); } 其中oneList里面存储的是指定列的列数,也就是列坐标 ...
分类:
Web程序 时间:
2020-11-07 16:39:59
阅读次数:
24
use think\Config; $config = Config::get('database2'); //读取第二个数据库配置 $connect = Db::connect($config); //连接数据库 $data = $connect->name('admin')->find(); / ...
分类:
数据库 时间:
2020-11-07 16:21:15
阅读次数:
22
1.需要先导入一个设置表结构 xxqcfg_mstr(用Data Administraton工具选择数据库导入) ADD TABLE "xxqcfg_mstr" AREA "CONTROL" DESCRIPTION "Config for xxqad program " DUMP-NAME "xxq ...
分类:
其他好文 时间:
2020-11-07 15:59:54
阅读次数:
19
Leetcode(easy Double pointer) Leetcode 双指针简单题目 26 删除排序数组中的重复项 class Solution{ public int removeDuplicates(int[] nums){ // step代表慢指针 int step = 0; // 这 ...
分类:
其他好文 时间:
2020-11-06 02:28:21
阅读次数:
24
题目: 字符串中有括号”()[]{}”,设计算法,判断该字符串是否有效括号必须以正确的顺序配对,如:“()”、“()[]”是有效的,但“([)]”无效 解法一: # coding=utf-8 from pythonds.basic.stack import Stack # 栈可以不用此包,入栈app ...
分类:
其他好文 时间:
2020-11-06 02:07:04
阅读次数:
20
cd ls pwd clear chmod chown chattr userdel groupadd vi wim cat more less mv cp rm rmdel touch ifconfig ip addr ping route echo wc expr bc ln head tail ...
分类:
其他好文 时间:
2020-11-04 19:25:23
阅读次数:
43