2022年12月5日

弹框居中的方法

摘要: http://t.zoukankan.com/1wen-p-4527667.html .tf-center{ position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: tran 阅读全文

posted @ 2022-12-05 17:40 s1ihome 阅读(29) 评论(0) 推荐(0) 编辑

2021年4月3日

如何 clone git 项目到一个非空目录

摘要: 如果我们往一个非空的目录下 clone git 项目,就会提示错误信息: fatal: destination path '.' already exists and is not an empty directory. 解决的办法是: 1. 进入非空目录,假设是 /workdir/proj1 2. 阅读全文

posted @ 2021-04-03 08:39 s1ihome 阅读(1170) 评论(0) 推荐(0) 编辑

2020年7月22日

Uiautomatorviewer报错:Unexpected error while obtaining UI hierarchy java.lang.reflect.InvocationTargetException

摘要: 参考文章 https://blog.csdn.net/qq_38776582/article/details/105364683 https://blog.csdn.net/dengachao/article/details/100535536 费了很长时间一直解决不了ui automator vi 阅读全文

posted @ 2020-07-22 10:40 s1ihome 阅读(1161) 评论(0) 推荐(0) 编辑

2020年2月25日

常见银行卡号账号长度参考表

摘要: 阅读全文

posted @ 2020-02-25 09:16 s1ihome 阅读(5542) 评论(0) 推荐(1) 编辑

2020年1月14日

TP5.0 数据库查询is not null

摘要: 比如最终形成的sql语句可能类似下面: select id from tablename where photo<>'' and photo is not null 但是代码中因为查询条件为通过数组拼凑,所以需要写成下面的形式取得上面SQL $where['photo'] = [['not null 阅读全文

posted @ 2020-01-14 16:43 s1ihome 阅读(1029) 评论(0) 推荐(0) 编辑

2019年11月20日

vscode 中sftp配置

摘要: 简单记录一下,相对路径的设置不用“/”表明根目录等,直接写目录名字即可 { "name": "profile name", "protocol": "ftp", "host":"10.11.11.11", "username": "ftpuser", "password": "ftppwd", "c 阅读全文

posted @ 2019-11-20 19:28 s1ihome 阅读(1720) 评论(0) 推荐(0) 编辑

2017年10月11日

移动端H5上传图片并压缩上传

摘要: 手头上的这个项目主要是在微信内运行的一个网站,需要用户上传手机内的照片,而现在手机照片尺寸越来越大,直接上传的话的确上传进度慢影响用户体验而且也会给服务器增加压力,所以利用H5的新特性压缩后上传不失为一良策。 最后选用的是localResizeImg进行压缩上传,简单易上手,核心代码部分如下。 前台 阅读全文

posted @ 2017-10-11 09:21 s1ihome 阅读(1117) 评论(0) 推荐(0) 编辑

2017年10月9日

Thinkphp关联模型使用

摘要: 1.需求描述 首页文章列表,需要同时获取文章的点赞和被关注数,同时如果被当前用户点赞或关注了会显示相应小图标进行区别。图示如下: 2.解决方案 数据库设计: 文章对应Article表,其中包括收藏数字段fav,点赞数字段zan 中间表user_fav,user_zan分别表示某一用户对某篇文章的点赞 阅读全文

posted @ 2017-10-09 19:45 s1ihome 阅读(600) 评论(0) 推荐(0) 编辑

2017年9月27日

centos 7 pdo

摘要: 在windows本机上测试好的Thinkphp5代码部署到centos7阿里云主机上面就提示class pdo not found,网上搜索了一大堆终于解决了。不过隔了这么几个小时详细的步骤就有些忘记了,只能简单的写下了。 1.提示 class pdo not found后测试用yum instal 阅读全文

posted @ 2017-09-27 16:27 s1ihome 阅读(317) 评论(0) 推荐(0) 编辑

2017年7月27日

thinkphp 5 where 组合条件map数组or

摘要: 直接贴代码记录以下供以后参考吧 阅读全文

posted @ 2017-07-27 18:12 s1ihome 阅读(5768) 评论(0) 推荐(0) 编辑

导航