摘要: 在使用flutter的图片裁剪组件image_cropper,github:https://github.com/hnvn/flutter_image_cropper 根据它的要求,安卓需要在文件【AndroidManifest.xml】的 application 标签内,配置 flutter ru 阅读全文
posted @ 2019-04-26 16:47 cqingt 阅读(2529) 评论(0) 推荐(0) 编辑
摘要: 微信小程序需要自定义导航栏,特别是左上角的自定义设置,可以设置返回按钮,菜单按钮,配置如下: 1、在app.json的window属性中增加: 顶部导航栏就会消失,只保留右上角胶囊状的按钮。 2、为了兼容适配所有机型,包括刘海屏,需要动态获取高度,并在app.js中设置: 3、在wxml页面自定义导 阅读全文
posted @ 2019-03-28 15:53 cqingt 阅读(2168) 评论(0) 推荐(0) 编辑
摘要: 1.图片显示不全 在使用layui.table组件中,加载的图片显示不全,需重新定义CSS如下: 2.图片显示,路径404 在组件中加载图片,本人使用的是如: 结果:图片在表格中显示,但浏览器会另外加载一张图片 使用模板改正就没有这个问题: 首先定义模板,(因为是laravel框架,所以需要@来避免 阅读全文
posted @ 2018-08-28 09:22 cqingt 阅读(3785) 评论(0) 推荐(0) 编辑
摘要: 代理模式 桥连模式 门面(外观)模式 阅读全文
posted @ 2018-04-13 18:06 cqingt 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 开发中适当的使用设计模式,可以让项目有更易扩展,易维护、低耦合,代码简洁等 单例模式 工厂模式 注册模式 观察者模式 策略模式 适配器模式 装饰器模式 阅读全文
posted @ 2018-04-12 18:20 cqingt 阅读(864) 评论(0) 推荐(1) 编辑
摘要: 今天在服务器上git pull是出现以下错误: error: Your local changes to the following files would be overwritten by merge: application/config/config.php application/cont 阅读全文
posted @ 2018-04-03 18:15 cqingt 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 微信小程序开发,请求服务器API的方法使用的是微信官方提供的wx.request()方法。在开发中发现,每一个请求都会生成一个独立的PHPSESSID,如下图示: 搜索后得知,这是由于wx.request()造成的。如果直接使用浏览器请求并不会出现这种情况。 解决方式如下: 通过登录接口获取到用户的 阅读全文
posted @ 2018-03-15 14:37 cqingt 阅读(2474) 评论(0) 推荐(0) 编辑
摘要: # 重定向 http 到 https server { listen 80; server_name www.domain.com; rewrite ^(.*)$ https://$server_name$1 permanent; } server { listen 443; server_name www.domain.com; ... 阅读全文
posted @ 2018-02-10 22:49 cqingt 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 1.安装mysql sudo apt install mysql-server 2.安装nginx和php #添加nginx和php的ppa源 sudo apt-add-repository ppa:nginx/stable sudo apt-add-repository ppa:ondrej/ph 阅读全文
posted @ 2018-02-03 11:29 cqingt 阅读(2172) 评论(0) 推荐(2) 编辑
摘要: 在LINUX中,周期执行的任务一般由cron这个守护进程来处理[ps -ef|grep cron]。cron读取一个或多个配置文件,这些配置文件中包含了命令行及其调用时间。cron的配置文件称为“crontab”,是“cron table”的简写。 一、cron服务 cron是一个linux下 的定 阅读全文
posted @ 2018-01-29 10:43 cqingt 阅读(3409) 评论(0) 推荐(0) 编辑