上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 以下为百度找的,感觉还不错就粘贴过来... 使用npm搭建Vue项目 安装淘宝镜像 1 安装Vue 脚手架 1 安装webpack 1 创建一个webpack模板的新项目 1 进入项目,安装相关以来并运行项目 1 2 3 安装element-ui 在项目路径下,使用cnpm添加element-ui依 阅读全文
posted @ 2018-09-20 20:06 迷失在路上 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: $compare= 1; $arrLis = array(1,2,3,4,5,'-1'); $arr = array_filter($arrLis,function($param) use ($compare) { return $param> $compare; }) $param 为 $arrL 阅读全文
posted @ 2018-08-17 16:50 迷失在路上 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 使用的 php_sdk_v4 https://github.com/tencentyun/cos-php-sdk-v4 使用框架 TP3.2 首先将sdk 放置Org/Net目录下 修改sample.php 为Cos.class.php 文件名称无所谓 这样就可以直接在 控制器中调用 阅读全文
posted @ 2018-08-10 16:49 迷失在路上 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 闲话不唠 直接上代码 使用 put方式的js_web上传方式 使用的基本是demo里的东西,在官方也有着地址 https://github.com/tencentyun/cos-js-sdk-v5/tree/master/demo 这里只要讲下配置 以下是php代码 <?phpnamespace H 阅读全文
posted @ 2018-08-09 17:53 迷失在路上 阅读(2188) 评论(0) 推荐(0) 编辑
摘要: get_object_vars 阅读全文
posted @ 2018-07-25 15:03 迷失在路上 阅读(176) 评论(0) 推荐(0) 编辑
摘要: function get_client_ip(){ if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'),'unknown')) { $ip = getenv('HTTP_CLIENT_IP'); } elseif(ge 阅读全文
posted @ 2018-07-25 14:19 迷失在路上 阅读(3281) 评论(0) 推荐(0) 编辑
摘要: 借阅 http://www.layui.com/demo/upload.html 前端代码 <form class="layui-form" action="#" method="post" style="margin-top:50px" id> <div class="layui-upload"> 阅读全文
posted @ 2018-03-29 17:12 迷失在路上 阅读(9239) 评论(0) 推荐(0) 编辑
摘要: https://github.com/nrk/predis 1/ 在根目录 composer.json 的require项中增加 "predis/predis": "*" 2/ 使用composer update 进行更新安装 predis包会安装到vendor目录下 3/ 新创建一个控制器 use 阅读全文
posted @ 2018-03-26 16:53 迷失在路上 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/myright/articles/5408276.html 在Windows下为PHP5.6安装redis扩展和memcached扩展 一.php安装redis扩展 1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本 2.根 阅读全文
posted @ 2018-03-26 15:49 迷失在路上 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 第1部分: 定义 PWA 2015年,国际电信联盟预估到15年年底全球上网人口将到达32亿,也就是说全球将近一半的人口都在上网。 想象一下每秒钟的上网人数,32亿。大约32000个足球场才装得下这么多人!这几乎是一个大到无法理解的数字。当这些人上网时,他们使用的设备不尽相同、他们的网速也各不相同、甚 阅读全文
posted @ 2018-03-20 14:49 迷失在路上 阅读(1156) 评论(0) 推荐(1) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页