摘要: 使用quill富文本编辑器实现,angular项目中用到了ngx-quill插件。 quill的GitHub地址:https://github.com/quilljs/quill ngx-quill的GitHub地址:https://github.com/KillerCodeMonkey/ngx-q 阅读全文
posted @ 2018-05-09 18:45 scott_j 阅读(10584) 评论(0) 推荐(0) 编辑
摘要: php websocket项目开发,推荐使用:Workerman 本片内容使用Workerman实现了简单的及时聊天功能,具体代码如下: 使用 php socket.php 启动服务端。 js端要发起json结构的数据,如下截图: 阅读全文
posted @ 2018-05-05 20:23 scott_j 阅读(140) 评论(0) 推荐(0) 编辑
摘要: https://github.com/jujunjun/ionic3-study 该应用包括的样例内容有: 文件上传,上拉更新,下拉加载,弹出层,列表,加载中,栅格,按钮等。 php提供的文件上传接口需要加上下面代码: header('Access-Control-Allow-Origin:*'); 阅读全文
posted @ 2018-04-25 20:05 scott_j 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 转: https://blog.csdn.net/AS_TS/article/details/107981367 使用 react + antd 组件时,有时会报出 Each child in a list should have a unique "key" prop. 这样的错误 这里列举几个相 阅读全文
posted @ 2020-10-19 16:37 scott_j 阅读(6513) 评论(0) 推荐(1) 编辑
摘要: 1、查找镜像 sudo docker search 镜像名称 $ sudo docker search ubuntuNAME DESCRIPTION STARS OFFICIAL AUTOMATEDubuntu Ubuntu is a Debian-based Linux operating sys 阅读全文
posted @ 2020-09-25 11:32 scott_j 阅读(246) 评论(0) 推荐(0) 编辑
摘要: $ sudo docker exec -it a5326cbabc6c /bin/bash root@a5326cbabc6c:/# ifconfig bash: ifconfig: command not found root@a5326cbabc6c:/# ping bash: ping: co 阅读全文
posted @ 2020-09-25 11:28 scott_j 阅读(326) 评论(0) 推荐(0) 编辑
摘要: $(".header").on("touchstart", function(e) { // 判断默认行为是否可以被禁用 if (e.cancelable) { // 判断默认行为是否已经被禁用 if (!e.defaultPrevented) { e.preventDefault(); } } ... 阅读全文
posted @ 2018-07-25 14:32 scott_j 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2018-07-25 12:16 scott_j 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 在html页面的head代码之间增加下面代码: <meta name="format-detection" content="telephone=no" /> 阅读全文
posted @ 2018-07-24 16:51 scott_j 阅读(237) 评论(0) 推荐(0) 编辑
摘要: webSocket的readyState属性用来定义连接状态,该属性的值有下面几种: 0 :对应常量CONNECTING (numeric value 0), 正在建立连接连接,还没有完成。The connection has not yet been established.1 :对应常量OPEN 阅读全文
posted @ 2018-07-13 17:25 scott_j 阅读(22089) 评论(0) 推荐(2) 编辑
摘要: 下面代码包括了含有中文汉字的字符。 阅读全文
posted @ 2018-06-12 11:52 scott_j 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 现在主流浏览器都支持资源文件压缩传输(通过设置http header的Content-Encoding=gzip)。 网站优化之一就是开通服务器端的gzip功能,通过对资源文件压缩传输,加快了页面响应速度。 Apache服务器的gzip功能开启和配置记录如下: 1、模块的开启,httpd.conf文 阅读全文
posted @ 2018-05-19 19:21 scott_j 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 判断变量是否定义: 判断变量是否为空或NULL,是则返回'', 反之返回原对象值: 阅读全文
posted @ 2018-05-18 11:28 scott_j 阅读(1881) 评论(2) 推荐(0) 编辑