![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
Coca可口
这个作者很懒,什么都没留下…
展开
-
vue3引入elementui报错Uncaught TypeError: Cannot read property ‘prototype‘ of undefined at eval (types.js
app.js:269 Uncaught TypeError: Cannot read property 'prototype' of undefined at eval (types.js?8ad0:39) at Object../node_modules/element-ui/lib/utils/types.js (chunk-vendors.js:889) at __webpack_require__ (app.js:266) at fn (app.js:522) ...原创 2022-07-20 16:07:12 · 2494 阅读 · 0 评论 -
vue-router下载、安装和配置
vue-router下载、安装和配置原创 2022-07-20 14:55:38 · 5147 阅读 · 0 评论 -
vue中监听的实现和写法
vue中监听的实现和写法原创 2022-06-06 16:39:58 · 309 阅读 · 0 评论 -
Vue项目引入外部js中的全部方法
方法一<script language="JavaScript" src="xx/xx.js"></script>方法二前提fun.js 文件需要将方法exportimport * as fun from 'xx/fun'Vue.prototype.$fun= fun通过this.$tools.{方法名} 调用原创 2022-05-11 10:22:16 · 2405 阅读 · 0 评论 -
vue的json格式化工具json-viewer
效果下载插件npm install --save default-passive-eventsvue页面引入import JsonViewer from 'vue-json-viewer'注册组件export default {components: { JsonViewer },data() { return { jsonData: [] } }}HTML<json-viewer原创 2022-05-09 14:16:59 · 2263 阅读 · 0 评论 -
el-tree展示elasticsearch的索引信息
Elasticsearch获取所有索引json格式的名称、大小、总数信息kibanaGET _cat/indices?v&h=index,docs.count,store.size&bytes=kb&format=json&pretty前端XX.XX.XX.XX:9200/_cat/indices?v&h=index,docs.count,store.size&bytes=kb&format=json&pretty..原创 2022-05-07 15:10:23 · 886 阅读 · 0 评论 -
纯前端js,axios实现elasticsearch数据高亮显示
1.分析解决办法kibana发送请求,在全部索引数据中查询所有包含"你好"的数据,并高亮显示查看结果我们发现含有高亮的标签并不在"_source"里面,而是在"highlight"里面。如果我们想只通过"_source"数据直接展示,那么方法很简单就是拿"highlight"里面的"name",去覆盖"_source"里面的"name"2.js代码实现覆盖data部分data() { return { total: 0,原创 2022-04-29 11:34:30 · 600 阅读 · 0 评论 -
axios发送请求到elasticsearch获取全部索引包含关键词的数据
检索全部索引的全部字段是否含有检索词"你好"requestbodylet listQuery ={ query:{ query_string:{ query: "你好" } } from: 0, size: 10 }let esURL = 'http://192.168.0.1:9200'axios写法axios..原创 2022-04-28 14:54:36 · 1417 阅读 · 1 评论 -
The value of the ‘Access-Control-Allow-Origin‘ header in the response must not be the wildcard ‘*‘ w
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attri原创 2022-04-27 09:39:46 · 3285 阅读 · 0 评论 -
NVM保姆级安装
1.下载安装之前,如果已安装了node.js,请先卸载已经安装好的node.js如果没有安装过,移步第四步开始看打开控制面板,点击卸载找到并卸载Node.js2.删除环境变量3.在系统变量中找到NODE_HOME删除4.在官网下载Releases · coreybutler/nvm-windows · GitHub5.安装6.更改镜像地址。添加语句node_mirror: https://npm.taobao....原创 2022-04-26 11:25:53 · 1312 阅读 · 0 评论 -
在window环境下 ,下载安装Elasticsearch,及其head和kibana
1.第一步下载,这里选择的是7.6.1版本下载。下载链接:Elasticsearch 7.6.1 | Elastic2.解压并双击bin目录下的elasticsearch.bat文件。启动之前需要配置java的环境变量,建议1.8版本。浏览器输入http://localhost:9200/,出现如图所示则成功...原创 2022-04-24 17:27:52 · 1471 阅读 · 0 评论 -
全局安装“grunt“。 ‘grunt‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
1.首先得安装node.js。下载地址Node.js 中文网傻瓜式安装不做演示。2.记住安装的地址,配置环境变量。没记住也没关系,打开cmd,输入where node3.配置环境变量点击新建NODE_PATH复制该地址并确认找到Path ,点击编辑在末尾加一个; 再复制粘贴地址点击确认。一定要加一个 ;重新打开cmd输入grunt -version...原创 2022-04-25 10:35:03 · 4638 阅读 · 0 评论 -
原生html+js动态给table赋值+每60s刷新table
1.引入<!-- 引入组件库 --> <script type="text/javascript" src="http://114.55.237.251/js/jquery.js"></script> <script src="http://114.55.237.251/js/jquery.min.js"></script>2.html中写table标签,重点是给标签赋予id<table id="dem原创 2022-04-13 10:36:40 · 4837 阅读 · 0 评论