上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 42 下一页
摘要: vue3中的其他组合api 阅读全文
posted @ 2021-12-09 14:48 竹石2020 阅读(22) 评论(0) 推荐(0)
摘要: # toRef可以将对象的属性变为响应式的 ![](https://img2020.cnblogs.com/blog/1943889/202112/1943889-20211209125959862-792437108.png) <script> import { reactive,toRefs } 阅读全文
posted @ 2021-12-09 13:01 竹石2020 阅读(466) 评论(0) 推荐(0)
摘要: ## vue3中的hook的使用 import { reactive,onMounted,onBeforeUnmount } from "vue"; export default function(){ let point = reactive({ x:0, y:0 }) function MyPo 阅读全文
posted @ 2021-12-09 12:59 竹石2020 阅读(511) 评论(0) 推荐(0)
摘要: 设置自启动 systemctl enable ssh 查看某个服务是否为自启动。 systemctl status ssh 安装mysql的方法 sudo apt install mariadb-server mariadb-client 第二步进入mysql 开始设置密码 还有设置远程可以登录 开 阅读全文
posted @ 2021-12-08 19:32 竹石2020 阅读(42) 评论(0) 推荐(0)
摘要: # elasticsearch中的三种模式 # 第一种动态模式 默认就是dynamic模式 PUT mapping { "mappings": { "properties": { "name":{ "type": "keyword" }, "age":{ "type": "long" } } } } 阅读全文
posted @ 2021-12-04 22:03 竹石2020 阅读(241) 评论(0) 推荐(0)
摘要: elasticsearch中的聚合函数 elasticsearch中的聚合函数求出平均年龄 计算出蜀国人物的平均年龄 GET test1/_search { "query": { "match": { "location.keyword": "蜀国" } }, "aggs": { "age_avg" 阅读全文
posted @ 2021-12-04 22:01 竹石2020 阅读(61) 评论(0) 推荐(0)
摘要: elasticsearch中的布尔查询 例如查询年龄是25岁,输入王者荣耀的英雄 GET test1/_search { "query": { "bool": { "must": [ { "match": { "age": "25" } }, { "match": { "location": "王者 阅读全文
posted @ 2021-12-04 13:44 竹石2020 阅读(70) 评论(0) 推荐(0)
摘要: elasticsearch的查询方法 创建索引 PUT test1 添加数据,可以指定id POST test1/_doc/2 { "name":"刘备", "age":54, "location":"蜀国" } 查询操作两种方法 · 第一种 GET test1/_search?q=location 阅读全文
posted @ 2021-12-04 11:32 竹石2020 阅读(231) 评论(0) 推荐(0)
摘要: vue3生命周期钩子,少了两个beforcreated和created函数,这两个函数直接变成了setup() 阅读全文
posted @ 2021-11-29 16:35 竹石2020 阅读(184) 评论(0) 推荐(0)
摘要: vue3 中的计算属性 监视属性 可以监视一个,也可以监视多个 watcheffect监视属性有点像computed方法,只要在watcheffect需要用到的数据发生变化就会重新调用。 阅读全文
posted @ 2021-11-28 15:13 竹石2020 阅读(84) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 42 下一页