上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 官方文档 https://wiki.swoole.com/#/server/methods?id=addlistener 例子: <?php $http = new Swoole\Http\Server("0.0.0.0", 9800); $http->set([ "worker_num" => 1 阅读全文
posted @ 2021-01-20 22:02 洪先森 阅读(463) 评论(0) 推荐(0)
摘要: parseInt('') NaN parseInt(null) NaN parseInt(undefined) NaN parseInt('asdfa') NaN parseInt('123') 123 parseInt('asd12') NaN // 转换后只保留前面数字 parseInt('12 阅读全文
posted @ 2021-01-12 18:10 洪先森 阅读(1239) 评论(2) 推荐(0)
摘要: 错误提示: Property 'resetFields' does not exist on type 'Vue | Element | Vue[] | Element[]'. Property 'resetFields' does not exist on type 'Vue'. 官网连接: ht 阅读全文
posted @ 2021-01-09 16:29 洪先森 阅读(5355) 评论(0) 推荐(0)
摘要: 最近写个项目需要在一个文件中引入多个文件 // 知识点1: 可用于模块的批量导入,类同于import引入同一文件夹下多个文件。 // require.context(directory, useSubdirectories = false, regExp = /^.//); // 参数: 1. 读取 阅读全文
posted @ 2021-01-09 16:26 洪先森 阅读(7987) 评论(0) 推荐(0)
摘要: 官方文档:https://www.php.net/manual/zh/function.inotify-init.php 可以用来实现监控文件的变化 主要方法: inotify_init() - 初始化实例 inotify_add_watch() - 添加一个监听实例 inotify_rm_watc 阅读全文
posted @ 2020-11-29 21:43 洪先森 阅读(321) 评论(0) 推荐(0)
摘要: https://php.golaravel.com/function.pcntl-fork.html pcntl_fork — 在当前进程当前位置产生分支(子进程)。 译注:fork是创建了一个子进程,父进程和子进程 都从fork的位置开始向下继续执行,不同的是父进程执行过程中,得到的fork返回值 阅读全文
posted @ 2020-10-29 09:13 洪先森 阅读(301) 评论(0) 推荐(0)
摘要: 仅为IM练习demo php 文件 <?php $user = []; $server = new Swoole\WebSocket\Server("127.0.0.1", 9501); $server->on('open', function (Swoole\WebSocket\Server $s 阅读全文
posted @ 2020-10-25 21:09 洪先森 阅读(242) 评论(0) 推荐(0)
摘要: Es 内置分词器 Standard Analyer 默认分词器,按词切分,小写处理 Simple Analyer 按照非字母切分(符号被过滤),小写处理 Stop Analyer 小写处理,停用过滤词(the, is , a) Whitespace Analyer 按照空格切分,不转小写 Keywo 阅读全文
posted @ 2020-08-03 23:13 洪先森 阅读(800) 评论(0) 推荐(0)
摘要: 查询全部文档 GET users/_search 不存在结果: { "error" : { "root_cause" : [ { "type" : "index_not_found_exception", "reason" : "no such index [users]", "resource.t 阅读全文
posted @ 2020-08-02 00:55 洪先森 阅读(436) 评论(0) 推荐(0)
摘要: 搭建环境 docker 镜像redis5 搭建过程 配置文件 Docker-compose.yml version: "3.6" services: # 代表就是一组服务 - 简单来说一组容器 redis_200: # 这个表示服务的名称,课自定义; 注意不是容器名称 image: redis_de 阅读全文
posted @ 2020-07-27 09:10 洪先森 阅读(313) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 13 下一页