上一页 1 ··· 4 5 6 7 8 9 下一页

idea连接mysql报错Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property

摘要: idea连接mysql报错Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property 在 Advanced 选项中 添加 name 和 value serverTimezone CST 阅读全文
posted @ 2019-10-28 11:08 少杨 阅读(4719) 评论(0) 推荐(0)

yii gii 访问不了

摘要: http://localhost/path/to/index.php?r=gii 出现一下情况, Forbidden (#403) You are not allowed to access this page. The above error occurred while the Web serv 阅读全文
posted @ 2019-08-18 15:22 少杨 阅读(685) 评论(0) 推荐(0)

mysql 添加用户 多主机 授权 连接 授权 取消授权

摘要: 创建用户 create user zhangsan identified by 'zhangsan'; 授权 grant all privileges on *.* to zhangsan@'%' identified by 'zhangsan'; 如果需要指定ip,用localhost 代替 12 阅读全文
posted @ 2019-07-25 10:03 少杨 阅读(1723) 评论(0) 推荐(0)

js div scrollTop active 垂直居中显示

摘要: var text_obj =$("#text"); // 改变目录位置 text_obj[0].scrollTop=text_obj.find(".active")[0].offsetTop-100; var text_obj =$("#text"); // 改变目录位置 text_obj[0].s 阅读全文
posted @ 2019-07-23 12:17 少杨 阅读(390) 评论(0) 推荐(0)

provisional headers are shown 原因分析

摘要: 后台 可能有重定向 ,需要许改 后台 代码 ,或 其他 路由配置 情景再现: 在发送http请求时,审查元素查看网络,有时会出现provisional headers are shown。与此同时,点击preview、response你都会发现是空的。 原因一: client发送请求后,由于各种原因 阅读全文
posted @ 2019-05-31 10:18 少杨 阅读(3134) 评论(0) 推荐(0)

js 对象 根据 key 排序

摘要: const unordered = { 'b': 'foo', 'c': 'bar', 'a': 'baz' }; console.log(JSON.stringify(unordered)); // → '{"b":"foo","c":"bar","a":"baz"}' const ordered = {}; Object.keys(unordered).sort 阅读全文
posted @ 2019-05-08 10:58 少杨 阅读(9091) 评论(0) 推荐(0)

php composer 使用

摘要: composer search symfony 搜索么个框架 或 项目 composer show symfony/symfony --all 显示所有的版本 composer create-project symfony/symfony symfony2.8 v2.8.* 安装么个 版本 格式 是 阅读全文
posted @ 2019-03-26 20:11 少杨 阅读(1071) 评论(0) 推荐(0)

CentOS-7 最小安装VMware-tools

摘要: # mkdir /mnt/cdrom ///创建挂载目录 # mount /dev/cdrom /mnt/cdrom ///将光驱挂载到/mnt/cdrom目录 # cd /mut/cdrom cp VMwareTools-XXXX.tar.gz /usr/local # cd /usr/local 阅读全文
posted @ 2019-03-09 22:50 少杨 阅读(1932) 评论(0) 推荐(0)

yii2 restful HttpHeaderAuth header 请求发送参数

摘要: 控制器添加 public function behaviors(){ $behaviors = parent::behaviors(); $behaviors['authenticator'] = [ 'class' => HttpBearerAuth::className(), ]; return 阅读全文
posted @ 2018-08-21 11:44 少杨 阅读(1768) 评论(0) 推荐(0)

yii2 各种组件中格式化时间 如:DetailView

摘要: views 视图文件中使用'updated_at:datetime',配置文件:main.php 'components' => [ 'formatter' => [ 'class' => 'yii\i18n\Formatter', 'dateFormat' => 'php:Y-m-d H:i:s' 阅读全文
posted @ 2018-08-03 17:04 少杨 阅读(493) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页