上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 97 下一页
摘要: luban h5编辑器 代码详解1 先看路由器 router.js import Vue from 'vue' import Router from 'vue-router' // import Home from './views/Home.vue' import Home from './vie 阅读全文
posted @ 2020-12-07 15:34 newmiracle宇宙 阅读(220) 评论(0) 推荐(0) 编辑
摘要: const app = new PIXI.Application(); document.body.appendChild(app.view); var imgURL = "/moban/images/share.jpg"; //加载图像,加载完成后执行setup函数 PIXI.loader.add 阅读全文
posted @ 2020-12-07 10:58 newmiracle宇宙 阅读(578) 评论(0) 推荐(0) 编辑
摘要: javascript判断NaN的方法 其实判断不了 isNaN是判断是不是数字 NaN本身也是个数字 所以返回值可能NaN要注意 阅读全文
posted @ 2020-12-01 14:48 newmiracle宇宙 阅读(402) 评论(0) 推荐(0) 编辑
摘要: php addslashes 需要注意的问题 存入数据库会去掉斜杠 所以一般别用 addslashes 实在不行就过滤双引号也行 阅读全文
posted @ 2020-11-28 10:01 newmiracle宇宙 阅读(133) 评论(0) 推荐(0) 编辑
摘要: PHP 使用ip链接需要注意的问题 能用内网的就用内网 因为内网不占带宽 外网传输要占带宽的 比方说链接数据库读取 内网就不用占带宽 阅读全文
posted @ 2020-11-27 18:59 newmiracle宇宙 阅读(75) 评论(0) 推荐(0) 编辑
摘要: // 单条插入 for ($i = 0; $i < 1000; $i++) { $name = rand(1000, 9999); $email = rand(1000, 9999); $message = rand(1000, 9999); $insertdata = array('name' = 阅读全文
posted @ 2020-11-25 20:56 newmiracle宇宙 阅读(349) 评论(0) 推荐(0) 编辑
摘要: phpredis 嵌套消息队列的方法 public function testxiaoxiduilie() { $redis = \RedisClient::getInstance(); $redis->flushall(); $key1 = "duilieitem1"; $redis->Lpush 阅读全文
posted @ 2020-11-25 12:17 newmiracle宇宙 阅读(145) 评论(0) 推荐(0) 编辑
摘要: PHP TCP处理大数据要注意的问题 1个tcp上 处理数据最好不要超过1分钟 不然会出现各种坑 如果超过1分钟就分批(分成多个tcp请求)处理 或者不要在tcp上处理 阅读全文
posted @ 2020-11-24 18:01 newmiracle宇宙 阅读(164) 评论(0) 推荐(0) 编辑
摘要: swoole hyperf CPU密集计算初体验 class IndexController extends AbstractController { public function index() { $ss=0; for($i=0;$i<1000000000;$i++){ $ss+=$i; } 阅读全文
posted @ 2020-11-24 11:23 newmiracle宇宙 阅读(234) 评论(0) 推荐(0) 编辑
摘要: PHP 换行编码问题 PHP_EOL 这个取决于当前系统的来决定换行符 如果linux 执行 那就是linux下的换行符 如果用win打开是不识别的 如果要win打开文件有换行 那就用win换行符写死 换行符必须和变量分离 $ss = __DIR__.'/test.txt'; $filename=3 阅读全文
posted @ 2020-11-24 10:05 newmiracle宇宙 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 97 下一页