Single Field 单字段索引 示例文档:records { "_id": ObjectId("570c04a4ad233577f97dc459"), "score": 1034, "location": { state: "NY", city: "New York" } } 在单个字段上创建 ...
分类:
数据库 时间:
2020-11-10 10:51:59
阅读次数:
8
树形菜单 $(function () { $.ajax({ url: window.location.protocol + '//' + window.location.host + '/Home/Menu', data: null, type: 'post', dataType: 'json', ...
分类:
其他好文 时间:
2020-11-06 02:16:29
阅读次数:
25
1、connect in umi connect 可以链接不同的组件,从而在这个组件中使用其他组件的参数,常用于获取redux中存取的值。 2、withRouter in umi withRouter 通过withRouter可以轻松拿到当前页面的location,而location中的pathna ...
分类:
其他好文 时间:
2020-11-06 02:14:46
阅读次数:
22
原型模式 案例 公司使用自行开发的一套系统进行日常工作办理,但在使用过程中,我们需要每周上传周报总结工作内容。基于此,我们简单的通过代码模拟这一过程。 1.首先定义一个周报类: public class WeeklyReport { // 填写人 private String name; // 周报 ...
分类:
其他好文 时间:
2020-11-01 22:02:19
阅读次数:
18
-- 查询具体表的分区目录 select t1.NAME, t2.TBL_NAME,t4.PART_NAME, t3.LOCATION from DBS t1, TBLS t2 , SDS t3 ,PARTITIONSt4 where t1.DB_ID=t2.DB_ID and t4.SD_ID = ...
分类:
其他好文 时间:
2020-11-01 21:29:48
阅读次数:
24
location /image { rewrite ^/image/(.*)$ https://xxx.com/image/$1; } 将历史资源(附件)上传到对象存储,替换对象存储的网址即可 ...
分类:
其他好文 时间:
2020-10-29 10:46:48
阅读次数:
29
Pip简易使用 使用pip list命令就可以发现自己电脑里所安装库的名字。如图展示的出来的有package、Version、Location三列,package是下载的python库名,Version是库的版本信息,Location是指库所在计算机里的安装位置,一般情况下只有非pip instal ...
分类:
编程语言 时间:
2020-10-29 09:31:20
阅读次数:
25
缓存 配置方法 内存缓存 在setting.py 添加缓存配置 # 项目名/setting。py # 内存缓存 CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION' ...
分类:
系统相关 时间:
2020-10-24 11:52:13
阅读次数:
38
BOM 页面的事件 window.onload 页面加载完毕后触发 window.onunload 页面关闭后触发 window.onbeforeunload 页面关闭之前触发 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" ...
分类:
其他好文 时间:
2020-10-22 22:14:14
阅读次数:
29
Does the bug always move to a new location? Explain. 不会,虫子真会朝着一个有小格子存在的地方,而且这个格子是空的,或者它上面有一朵红花,只有这个情况它才会移动。 解释:该行为被方法act()限制,所以出现这样的行走方式 In which dire ...
分类:
其他好文 时间:
2020-10-21 20:30:04
阅读次数:
21