- 博客(6)
- 收藏
- 关注
原创 tp5 获取数据库所有的数据表
$exist = Db::query(“show tables”);返回值array(54) {[0] => array(1) {[“Tables_in_thinkcmf5”] => string(13) “uc_admin_menu”}[1] => array(1) {[“Tables_in_thinkcmf5”] => string(8) “uc_asse...
2019-04-28 11:39:05 3270
转载 从二维数组中娶某一列 转换成一维数组
<?php// 表示由数据库返回的可能记录集的数组$a = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve',...
2019-04-28 11:36:30 1024
原创 css属性选择器 选择的属性是变量的时候
$(document).ready(function () {$(".sort_name").click(function() {var parent_id = $(this).data(‘id’);console.log(parent_id);$(“tr[data-parent_id=”+parent_id+"]").toggle();})});
2019-04-27 17:36:10 757
原创 ajax请求
$(function(){//初始化数据//var url1 = “http://a.com/customer/Index/department”; //后台地址$("#input-list_tpl").change(function(){ //监听下拉列表的change事件var dept = $(this).val(); //获取下拉列表选中的值 //发送一个post请求 $....
2019-04-25 11:20:31 96
原创 a标签里面的href=""和href="JavaScript"有什么区别呢?
原来是< a href="" class=“fixedred” id=“bao”>< img src=" __ PUBLIC __/Home/images/pro-red.png"></ a >我用js控制的跳转top.location.href = “{:U(‘red/red_info’,array(‘id’=>$data[‘customer_id’]...
2019-04-22 17:15:53 330
原创 tp3.2 NOT IN用法
price1=M(′price′)−>where("userid=price1 = M('price')->where("user_id=price1=M(′price′)−>where("userid=sid")->where([‘content’=>[‘not in’,$ol...
2019-04-19 15:59:41 3525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人