MongoDB简介 MongoDB是一种文档型的非关系型数据库(NoSQL),举例如下: 并且区分大小写,key值唯一,不可重复,文档可以嵌套,键值对是有序的 集合 1、集合就是一组文档 2、文档类似于关系库里的行 3、集合类似于关系库里的表 4、集合里的文档无需固定的结构(与关系型数据库的区别) ...
分类:
数据库 时间:
2018-03-03 12:16:25
阅读次数:
198
后台接受并返回数据给前端 控制台: @PathVariable注解的使用 客户端请求地址: 后台处理: sex的值就是url中paramtest后的值 将来常用的方式就是url中传递的是一些动态的参数 在后台通过该标签进行获取 举个栗子: 提交给后台 断点查看: ...
分类:
编程语言 时间:
2018-03-03 12:15:13
阅读次数:
144
problem: Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ra ...
分类:
其他好文 时间:
2018-03-03 01:06:19
阅读次数:
185
我这种菜鸡还是%一下棒神比较好 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<cstdlib> 5 #include<cstring> 6 #include<algorithm> 7 #include<vec ...
分类:
其他好文 时间:
2018-03-02 22:10:32
阅读次数:
130
ajax参数补充 contentType 当我们使用form表单提交数据时,有一个enctype属性,默认情况下不写 此时我们提交数据时,会默认将数据以application/x-www-form-urlencoded的编码方式发送 该形式的数据为"k1=v1&k2=v2"格式,可以看成是一组组的键 ...
分类:
Web程序 时间:
2018-03-02 20:57:09
阅读次数:
208
# pip install elasticsearch from datetime import datetime from elasticsearch import Elasticsearch es_servers = [{ "host": "10.10.6.225", "port": "9200... ...
分类:
编程语言 时间:
2018-03-02 14:53:52
阅读次数:
1839
题意:给定一棵树,树上每个点有权值和类型。支持:修改某个点的类型;修改某个点的权值;询问某条链上某个类型的点的和/最大值。点数/类型数/询问数<=100000. 分析: 树链剖分,对每个类型的点建立线段树(动态开点)。 note: 忘记写t_query返回值调半天…… 莫名其妙地1A 代码: ...
分类:
其他好文 时间:
2018-03-01 23:42:25
阅读次数:
310
this.$router.push({name:'master',params:{id:'参数'}}); //name和params搭配 this.$router.push({path:'/master',query:{id:'参数'}}); //path和query搭配 ...
分类:
其他好文 时间:
2018-03-01 17:12:37
阅读次数:
207
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen ...
分类:
其他好文 时间:
2018-03-01 11:52:20
阅读次数:
233
project模块: 一 注意事项 1. 接口参数,get和post传入对象写法不一样,如下:对象参数不能写param,,`params`是要与请求一起发送的URL参数 getMonthStaffing(id, params) { return http.get(`/staffing/query/$ ...
分类:
其他好文 时间:
2018-03-01 11:47:42
阅读次数:
168