上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 143 下一页
摘要: thinkphp session如何取数组 session('user_auth.username'); 搞定! 阅读全文
posted @ 2017-03-28 16:29 刘俊涛的博客 阅读(1281) 评论(0) 推荐(0)
摘要: sublime text 全局搜索快捷键 ctrl+shift+F 阅读全文
posted @ 2017-03-27 16:24 刘俊涛的博客 阅读(13734) 评论(0) 推荐(1)
摘要: TP模板中如何使用函数 TP中如何将时间戳转换为时间显示 我们往往需要对模板输出变量使用函数,可以使用: {$data.name|md5} 编译后的结果是: <?php echo (md5($data['name'])); ?> 如果函数有多个参数需要调用,则使用: {$create_time|da 阅读全文
posted @ 2017-03-27 11:27 刘俊涛的博客 阅读(10146) 评论(1) 推荐(0)
摘要: MySQL 中now()时间戳用法 UPDATE news set addtime = unix_timestamp(now()); #结果:1452001082 阅读全文
posted @ 2017-03-27 11:07 刘俊涛的博客 阅读(7718) 评论(0) 推荐(0)
摘要: ajax local.href不跳转的原因之一 打开F12发现一直报 next.html is not a function…… 后来发现next少了(),看得我尴尬症都犯了 阅读全文
posted @ 2017-03-25 14:24 刘俊涛的博客 阅读(814) 评论(1) 推荐(0)
摘要: Call to a member function select() on string错误 Call to a member function select() on array错误 我也是 Getfiled 与select只能用一个啊!!!!! 阅读全文
posted @ 2017-03-24 18:54 刘俊涛的博客 阅读(8082) 评论(0) 推荐(1)
摘要: ajax post请求时提示404错误 TP框架中ajax post请求时提示404 找了半天是 控制器中方法有错误! 下次再遇到去控制器方法中找一步一步找,肯定能找到,我是单词拼错了! 阅读全文
posted @ 2017-03-24 18:43 刘俊涛的博客 阅读(1174) 评论(0) 推荐(0)
摘要: TP框架中field查询字段 不是fields 也不是files !!!! 不是fields 也不是files !!!! 不是fields 也不是files !!!! 不是fields 也不是files !!!! 不是fields 也不是files !!!! field 阅读全文
posted @ 2017-03-24 18:19 刘俊涛的博客 阅读(2388) 评论(0) 推荐(0)
摘要: jQuery取得select选中的值 本来以为jQuery("#select1").val();是取得选中的值, 那么jQuery("#select1").text();就是取得的文本。 这是不正确的,正确做法是: jQuery("#select1 option:selected").text(); 阅读全文
posted @ 2017-03-24 16:19 刘俊涛的博客 阅读(3336) 评论(2) 推荐(0)
摘要: TP中session操作 查看代码,OMG! 不应该是这样的 阅读全文
posted @ 2017-03-24 10:40 刘俊涛的博客 阅读(2000) 评论(2) 推荐(0)
上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 143 下一页