码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
function_score 之script_score
function_score配合script_score是排序的终极方案例子:curl-XGET‘http://localhost:9200/alias-product/product/_search?pretty&explain‘-d‘{"size":0,"query":{"function_score":{"query":{"filtered":{"filter":{"bool":{"must":{"match":{"_all":{"query":"关键字","ty..
分类:其他好文   时间:2017-06-09 17:34:49    阅读次数:176
webpack 解决 semantic ui 中 google fonts 引用的问题
semantic ui css 的第一行引用了 google web font api,由于不可告人而又众所周知的原因,这条链接在国内无法访问: css 是阻塞渲染的,而 css 中的 import 又会进一步阻塞加载和渲染,所以就导致页面样式加载十分缓慢。 像 semantic ui 这样的开源框 ...
分类:Web程序   时间:2017-06-09 15:21:07    阅读次数:685
常用模块
正则表达式:模糊匹配 最常用的匹配语法 1,re.match 从头开始匹配 2,re.search 匹配包含 3,re.findall 把所有匹配到的字符放到以列表中的元素返回 4,re.split 以匹配到的字符当做列表分隔符 5,re.sub 匹配字符并替换 反斜杠的困扰与大多数编程语言相同,正 ...
分类:其他好文   时间:2017-06-08 23:41:42    阅读次数:305
js判断ie11浏览器
IE 11中userAgent已经不包含'msie'所以用'msie'不能判断IE 11 IE 11的userAgent版本为Trident x.x 判断IE 11 用正则判断userAgent中有没有带Trident字样的字符串即可 var u = window.navigator.userAge ...
分类:Web程序   时间:2017-06-08 19:36:30    阅读次数:168
Spring AOP实现 Bean字段合法性校验
使用SpringAop 验证方法参数是否合法 先定义两个注解类ValidateGroup 和 ValidateFiled ValidateGroup .java package com.zf.ann; import java.lang.annotation.ElementType; import j ...
分类:编程语言   时间:2017-06-08 18:50:04    阅读次数:347
Wrestling Match hdu-5971(思维+STL)
Problem Description Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the game is "good player”, ...
分类:其他好文   时间:2017-06-08 18:09:44    阅读次数:292
shell 解码url   url decode
文件名:url_decode.sh #/bin/sh awk‘BEGIN{ for(i=0;i<10;i++) hex[i]=i; hex["A"]=hex["a"]=10; hex["B"]=hex["b"]=11; hex["C"]=hex["c"]=12; hex["D"]=hex["d"]=13; hex["E"]=hex["e"]=14; hex["F"]=hex["f"]=15; } { gsub(/\+/,""); i=$0; while(match(i,/%../)){ if(R..
分类:Web程序   时间:2017-06-08 18:09:36    阅读次数:341
XAMPP非本地访问被拒绝解决办法
问题场景: 本机搭建一个apache服务器,正常访问XAMPP目录下的页面。 手机接入同一wifi,以电脑ip方式访问该目录下的页面;提示:Access Denied Access to the requested directory is only available from the local ...
分类:其他好文   时间:2017-06-08 14:03:48    阅读次数:518
Java compiler level does not match the version of the installed Java project facet错误的解决
Java compiler level does not match the version of the installed Java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误。明明源码一模一样,为什么项目复制到另一台 ...
分类:编程语言   时间:2017-06-08 10:35:21    阅读次数:139
js转换Date日期格式
1.js方法返回值:2015-03-19 调用:formatDate(Date()) var formatDate = function (date) { var y = date.getFullYear(); var m = date.getMonth() + 1; m = m < 10 ? '0 ...
分类:Web程序   时间:2017-06-07 17:04:07    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!