摘要: 幻读 幻读是指当事务不是独立执行时发生的一种现象。 幻读 幻读是指当事务不是独立执行时发生的一种现象。 事务A读取与搜索条件相匹配的若干行。事务B以插入或删除行等方式来修改事务A的结果集,然后再提交。 幻读是指当事务不是独立执行时发生的一种现象,例如第一个事务对一个表中的数据进行了修改,比如这种修改 阅读全文
posted @ 2019-04-03 14:40 百事可口 阅读(242) 评论(0) 推荐(0) 编辑
摘要: $fp = fopen("lock.txt", "w+"); if(!flock($fp,LOCK_EX | LOCK_NB)){ echo "系统繁忙,请稍后再试"; return; } //////////////// /一些操作 ///////////////// flock($fp,LOCK 阅读全文
posted @ 2019-04-02 16:02 百事可口 阅读(296) 评论(0) 推荐(0) 编辑
摘要: class ExecuteHelper { /** * @param string $classPath 实例化类名路径 * @param string $method 方法 * @param array $params 参数 * @throws NotFoundHttpException */ public static fun... 阅读全文
posted @ 2019-03-28 11:15 百事可口 阅读(109) 评论(0) 推荐(0) 编辑
摘要: unique、exist等无法使用客户端验证 可使用ajax验证 https://www.cnblogs.com/wujuntian/p/7265781.html 阅读全文
posted @ 2019-03-27 15:28 百事可口 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 在Google Chrome里面,打开开发人员工具(网站上任意空白处右键 - 选择“检查”或者“审查元素”。 快捷键 Ctrl+Shift+P ,会看到右边的审查元素出来了一个好看的框框 - 输入 screenshot ,回车! 阅读全文
posted @ 2019-03-22 15:52 百事可口 阅读(284) 评论(0) 推荐(0) 编辑
摘要: http://www.runoob.com/jsref/met-win-setinterval.html 使用setInterval()方法 阅读全文
posted @ 2019-01-25 15:50 百事可口 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 一对多 a表 id status 1 1 b表 id income aid 1 1000 1 2 2000 1 3 3000 1 若b表有数据查询 a表展示出 b表income和 阅读全文
posted @ 2019-01-12 17:20 百事可口 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: 扩展 1. 2amigos/qrcode-library https://qrcode-library.readthedocs.io/en/latest 直接调用 2.phpqrcode http://phpqrcode.sourceforge.net/ 阅读全文
posted @ 2018-12-26 11:33 百事可口 阅读(476) 评论(0) 推荐(0) 编辑
摘要: https://www.kancloud.cn/ldkt/tp5_model/236040 阅读全文
posted @ 2018-12-17 00:16 百事可口 阅读(1636) 评论(0) 推荐(0) 编辑
摘要: 转载 先确保 Topic 有 getComments() 方法 joinWith() with() 而针对于这两者,官网上是这样说的: yii\db\ActiveQuery::joinWith() 和 yii\db\ActiveQuery::with() 的区别是 前者连接主模型类和关联模型类的数据 阅读全文
posted @ 2018-11-17 16:12 百事可口 阅读(6449) 评论(0) 推荐(0) 编辑