摘要: 引入 概念 通过数值比较、范围过滤等就可以完成绝大多数我们需要的查询,但是,如果希望通过关键字的匹配来进行查询过滤,那么就需要基于相似度的查询,而不是原来的精确数值比较。全文索引就是为这种场景设计的。 你可能会说,用 like + % 就可以实现模糊匹配了,为什么还要全文索引?like + % 在文 阅读全文
posted @ 2020-10-20 11:06 121686076 阅读(173) 评论(0) 推荐(0) 编辑
摘要: nodejs 需要有 https模块和 fs模块(文件系统) var socketio = require('socket.io'), fs = require('fs'), //引入fs模块 https = require('https'), // 引入http模块改为 引入https 注意相应位 阅读全文
posted @ 2017-08-11 15:34 121686076 阅读(1867) 评论(0) 推荐(0) 编辑
摘要: 在CSS文件开头 或 页面开头 添加 *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0); -moz-tap-highlight-color:rgba(0, 0, 0, 0); -ms-tap-highlight-color:rgba(0, 0, 0, 0) 阅读全文
posted @ 2017-08-10 09:31 121686076 阅读(360) 评论(0) 推荐(0) 编辑
摘要: oninput input/textarea 监听输入状态 function filteremoji(content){ var ranges = [ '\ud83c[\udf00-\udfff]', '\ud83d[\udc00-\ude4f]', '\ud83d[\ude80-\udeff]' 阅读全文
posted @ 2017-08-05 19:30 121686076 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM (SELECT * FROM `cmf_users_liverecord` ORDER BY id desc ) test where islive='1' GROUP BY uid ORDER BY id desc; 阅读全文
posted @ 2016-10-28 16:20 121686076 阅读(3108) 评论(0) 推荐(0) 编辑
摘要: 1、php copy 响应时间过长 $image='http://wx.qlogo.cn/mmopen/xYy6WvcRDUIyje9icalqbspL5n9viccxIvtnN4srncZINWZHsq0ZosMJrJbkdacZuX1YSg9w005dQ5JdicyXG07wtO9ZMglRI8 阅读全文
posted @ 2016-08-19 16:25 121686076 阅读(126) 评论(0) 推荐(0) 编辑
摘要: array_column 为PHP自带函数 需要 (PHP 5 >= 5.5.0, PHP 7) 当PHP版本的低时 可用自定义行数来实现 function array_column($input, $columnKey, $indexKey = NULL){ $columnKeyIsNumber 阅读全文
posted @ 2016-07-27 09:42 121686076 阅读(505) 评论(0) 推荐(0) 编辑
摘要: git pull --rebase origin master git push -u origin master 阅读全文
posted @ 2016-03-08 09:04 121686076 阅读(101) 评论(0) 推荐(0) 编辑
摘要: /** * JS版 数字 金额格式化 * @param string s 需要处理的数字串 * @param string n 保留小数的位数 */function fmoney(s, n) { n = n >= 0 && n <= 20 ? n : 2; s = parseFloat((s + " 阅读全文
posted @ 2016-02-20 16:21 121686076 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1、常见浏览器窗口的尺寸断点:960px 1024px 1280px 1366px 1440px 1680px 2、 @media screen and (max-width:960px) // 960px 以下尺寸 @media screen and (min-width:961px) and ( 阅读全文
posted @ 2016-02-20 08:47 121686076 阅读(166) 评论(0) 推荐(0) 编辑