02 2017 档案

摘要:Thinkphp框架开发过程中,因需求需要改动数据表,新增了几个字段. 调用 M(‘xxx’)->add($data) 插入值时,新增的字段数据总是插入不进去,每次都是默认的值,于是恍然—-缓存了…清空缓存 . 终于可以正常插入数据了. 原来TP在配置文件中如果没有关闭字段缓存设置,默认是开启的,只 阅读全文
posted @ 2017-02-17 10:55 侠岚之弋痕夕 阅读(2386) 评论(0) 推荐(1) 编辑
摘要:1.例子: 2.返回数据:$data 3.接收数据。例如: 阅读全文
posted @ 2017-02-14 10:10 侠岚之弋痕夕 阅读(5644) 评论(0) 推荐(0) 编辑
摘要:jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text 2. var checkValue=jQuery("#select_id").val(); //获取Select选择的opt... 阅读全文
posted @ 2017-02-09 10:02 侠岚之弋痕夕 阅读(924) 评论(0) 推荐(0) 编辑
摘要:获取Select : 获取select 选中的 text : ("#sid").find("option:selected").text(); 获取select选中的 value:("#sid").val(); 获取select选中的索引: $("#sid").get(0).sele... 阅读全文
posted @ 2017-02-09 10:01 侠岚之弋痕夕 阅读(1465) 评论(0) 推荐(0) 编辑
摘要:strlen strlen — 获取字符串长度 int strlen ( string string)stringmbstrlenintmbstrlen(stringstr [, string $encoding ] ) 返回给定的字符串 stri 阅读全文
posted @ 2017-02-09 09:55 侠岚之弋痕夕 阅读(2578) 评论(0) 推荐(0) 编辑
摘要:jquery的ajax请求的主要参数 beforeSend:发送ajax请求之前 success:发送ajax请求成功 error:发送ajax请求错误,通常是网络失去连接、服务器出错、后台方法错误等造成的 代码: 阅读全文
posted @ 2017-02-09 09:52 侠岚之弋痕夕 阅读(132) 评论(0) 推荐(0) 编辑
摘要:1.下载phpexcel文件(之前提到过!) 2.下载后将文件放到: 3.在控制器中引用: 4.部分实现的代码: 5.测试。应用。 阅读全文
posted @ 2017-02-07 15:25 侠岚之弋痕夕 阅读(341) 评论(0) 推荐(0) 编辑

Where is the starting point, we don't have a choice, but the destination where we can pursue!
点击右上角即可分享
微信分享提示