摘要:
<script src="js/jquery.min.js"></script> <script src="js/FileSaver.min.js"></script> <script src="js/jquery.wordexport.js"></script> let word_html = ' 阅读全文
摘要:
.clearfix:before,.clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; } .clearfix { *zoom: 1; } 阅读全文
摘要:
{ "query": { "bool": { "must": [{ "match_phrase": { "type_id": 123 } }], "should": [{ "match_phrase": { "title": "常德" } }, { "match_phrase": { "conten 阅读全文
摘要:
http://127.0.0.1:9200/aaaaaa/_search{ "from": 0, "size": 0, "aggs": { "my":{ "terms":{ "field": "id" } } } } 阅读全文
摘要:
比如我要查询Elasticsearch库中字段为:id的有没有重复数据,可以用下面的方法,先查询出来,再执行删除。 $from = 0; $size = 0; $url = 'http://127.0.0.1/aaaaaa/_search'; $data['from'] = $from; $data 阅读全文
摘要:
其中的条件类似于mysql的where cate_id=$cate_id and (title=$keyword or content=$keyword) $keyword = '常德学院'; $cate_id = 148; $url = 'http://127.0.0.1/aaaaaaa/_sea 阅读全文
摘要:
bool query 一种复合查询,把其余类型的查询包裹进来。支持以下三种逻辑关系。 must: AND must_not:NOT should:OR 阅读全文
摘要:
<?php namespace ftp; /** * 作用:FTP操作类( 拷贝、移动、删除文件/创建目录 ) */ class ftp { public $off; // 返回操作状态(成功/失败) public $conn_id; // FTP连接 /** * 方法:FTP连接 * @FTP_H 阅读全文
摘要:
1、删除表中数据并且重置id这种方法好处是运行速度超快‘ truncate table 表名; 2、删除表中数据并且重置id 这种方法好处是可以从任何值开始,缺点是如果数据量大的话delete from 表名;非常耗时 delete from 表名; alter table `表名` auto_in 阅读全文
摘要:
$(function (){ var eleImg = document.querySelector('#image'); var store = { scale: 1 }; // 缩放处理 eleImg.addEventListener('touchstart', function (event) 阅读全文