自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

转载 给MySQL授权远程访问

putty登录服务器; 登录MySQL: mysql -u root -p 新建远程用户: CREATE USER 'myusername' IDENTIFIED BY 'mypassword'; 授权: grant all on *.* to john@'101.102.103....

2018-09-23 20:54:00 99

转载 把jwt集成到thinkphp3.2

记得去年一篇博客研究了下jwt, 现在派上用场了。 一个遗留项目用的Thinkphp3.2, 现在要做混合App, 用户认证授权考虑后使用jwt, 简单易用啊。 用的库是php-jwt, 在github这里,实际使用效果还不错 基本授权流程如下图 有个例外是用户登录,流程如下图 ...

2018-09-05 11:04:00 955

转载 vue-jstree安装使用备忘

源码在这里https://github.com/zdy1988/vue-jstree 我是vue-cli建的项目 npm installvue-jstree --save 组件里这样写 import VJstree from 'vue-jstree';import axios f...

2018-08-28 17:30:00 316

转载 让文字环绕圆形图片

样式如下 .curve { width: 33%; height: auto; min-width: 150px; float: left; margin-right:2rem; border-radius: 50%; -webkit-shape-outsid...

2018-05-22 10:31:00 497

转载 尝试使用php的闭包Closure

今天在使用array_map时使用到了闭包closure 场景:需要给array_map传递自定义参数 实现: array_map(function($item) use ($params) { return $this->transformdata($item, $params)...

2018-01-16 22:50:00 97

转载 jwt的测试

测试了这篇文章的代码 JSON Web Token Tutorial: An Example in Laravel and AngularJS 特点:前后端都有。 前端是angular spa, 主模板在resouces下;逻辑和html在public下 后端是laravel, con...

2017-12-04 21:32:00 200

转载 woocommerce给购物车添加产品重量

本应写个插件,然后重载cart模板,觉得有点大材小用,直接改模板吧 \wp-content\plugins\woocommerce\templates\cart\cart.php 38行加表头 <th class="product-weight"><?php _e( '...

2017-07-03 23:18:00 150

转载 slim framework 安装备忘

环境:windows7, wamp 1. 安装composer 下载https://getcomposer.org/download/1.4.2/composer.phar, 复制到wamp/bin/php/php5.5.12,同时在php5.5.12下建composer.bat内容为@p...

2017-06-18 22:18:00 141

转载 近期收集的tips

1.div没有随内容自动展开:给他加display:block;overflow:auto; 2.标题文字左右加短线: <div class="title-bar"></div> <div class="title-text">标题</div&g...

2016-06-04 15:21:00 68

转载 Ionic左右划用来加载上一页,下一页

参考了这篇文章 http://blog.ntuanb.com/2015/10/04/ionic-swipe-left-right/ 左右划的代码优化了下,去掉遍历: $scope.swipeRight = function swipeRight(id) { ...

2016-04-04 10:41:00 104

转载 ionic的slide box挺不错

试试ionic的slide box,感觉挺不错。有图为证 结构如下 <ion-slide-box show-pager="true"> <ion-slide> <img src="1.jpg" /> ...

2016-03-21 08:08:00 93

转载 javascript数组的长度不是只读属性

var arr = ['a', 'b', 'c', 'd', 'e', 'f']; // length:6, 0:a, 1:b, 2:c, 3:d, 4:e, 5:f arr.length = 5; // length:5, 0:a, 1:b, 2:c, 3:d, 4:e ...

2016-02-28 09:50:00 154

转载 原生javascript ajax提交

手机站在安卓微信内置浏览器内jQuery ajax总是失效,用以下代码测试结果正常。从而判断出jquery被其他js代码干扰了,最终发现是iframe提交的一段代码是罪魁。 var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadyst...

2016-01-31 22:59:00 65

转载 汉字字串尾部的乱码

解决办法是使用mb_substr, 例如: $a_info = mb_substr($author_info->description,0,15,'UTF-8'); 转载于...

2016-01-07 16:08:00 85

转载 上传中文文件名乱码问题

一 问题识别: 1.是上传到Ubuntu服务器(Linux?),Windows服务器没有问题 2.文件和数据库皆为UTF-8编码 二 我的解决方案 1.上传时给文件名编码或换成字母数字 2.数据库记录原文件名和转换的文件名及路径 3.下载时换回原文件名(单...

2015-12-22 11:23:00 154

转载 MVC Isn't Enough

http://www.sitepoint.com/practical-oop-building-quiz-app-bootstrapping/ 看了这篇文章,获益匪浅,MVC is not enough. 项目中常提醒自己吧。 ...

2014-12-21 10:36:00 65

转载 备忘 has_cap was called with an argument that is ...

After installed plugin 'Cartpauj PM', on backend top showing a warning: Notice: has_cap was called with an argument that isdeprecatedsince ve...

2014-04-05 16:06:00 133

转载 Post Types in WordPress

There are five default post types that come with WordPress: Posts, Pages, Attachments, Revisions and Nav menus. you can createa content type ...

2014-03-11 21:04:00 198

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除