摘要: 谷歌浏览器页面乱码问题在浏览器端解决;charset下载安装; 阅读全文
posted @ 2018-02-08 14:04 tatasix 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: php中的跳转 header("refresh:3;url=http://www.baidu.com";); <meta http-equiv='refresh' content='3;url=http://www.baidu.com'>; header("location:http://www.b 阅读全文
posted @ 2018-02-07 18:19 tatasix 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 数据库中的两个字段有一个字段等于查询条件时,下面两个方法都是可以的: (1) $where['a.goods_name|a.goods_sn'] = array('like',"%$keyWord%"); (2) $map['a.goods_name'] = array('like',$keyWor 阅读全文
posted @ 2018-02-07 18:10 tatasix 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: 1、$model->_sql(); 方法实际执行的就是 $model->getLastSql(); 2、fetchSql fetchSql用于直接返回SQL而不是执行查询,适用于任何的CURD操作方法。 例如: $result = M('User')->fetchSql(true)->find(1) 阅读全文
posted @ 2018-02-07 18:04 tatasix 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 直接看代码: 需要注意的是:下面这样写是错误的:$where['months'] = array('gt',"donemonth"); thinkphp会直接把donemonth当成一个已知的值! 阅读全文
posted @ 2018-02-07 18:03 tatasix 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 经常有需要对某个数据表的计数字段进行加减操作,我们来看下在ThinkPHP中的具体使用办法。 最简单的,使用下面方法对score自加,第二个参数也可以不要,默认加1: 自减也是同样的道理: 自减也是同样的道理: 但是上面这两发方法只能单独对一个字段进行操作,如果要几个字段一起操作的话,就需要采用表达 阅读全文
posted @ 2018-02-07 17:59 tatasix 阅读(746) 评论(0) 推荐(0) 编辑
摘要: <audio id="failSound" > <source src='' type='audio/mp3'> </audio> <script> var video = document.getElementById("failSound"); video.src="capi/number/st 阅读全文
posted @ 2018-02-07 17:37 tatasix 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: phpstorm快捷键 阅读全文
posted @ 2017-10-20 12:51 tatasix 阅读(2234) 评论(0) 推荐(0) 编辑
摘要: php,PHP入门,PHP基础,总结 阅读全文
posted @ 2017-09-01 22:50 tatasix 阅读(164) 评论(0) 推荐(0) 编辑
摘要: jQuery,总结,基础 阅读全文
posted @ 2017-09-01 22:48 tatasix 阅读(231) 评论(0) 推荐(0) 编辑