摘要: 在php中向前台js中传送一个二维数组,并在前台js接收获取其中值的全过程方法:(1),方法说明:现在后台将数组发送到前台echo json_encode($result);然后再在js页面中的ajax一部传送的返货函数中接收,最重要的是接受的时候设置一下接收参数的类型:$.post("http:"... 阅读全文
posted @ 2015-07-09 11:04 依凡王子 阅读(536) 评论(0) 推荐(0) 编辑
摘要: array_unique和array_flip 实现去重间的区别​php有内置函数array_unique可以用来删除数组中的重复值,phperz~com(PHP4>=4.0.1,PHP5)array_unique--移除数组中重复的值array_unique说明arrayarray_unique(... 阅读全文
posted @ 2015-07-09 11:01 依凡王子 阅读(13409) 评论(0) 推荐(0) 编辑
摘要: 1, 此方法为ajax异步发送后台数据的方法var payment_id=$(this).attr("name");alert(payment_id);$('.label').text(0);$.ajax({url:$('#url').val()+"/search2", type:"POST", d... 阅读全文
posted @ 2015-07-09 10:58 依凡王子 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 异步分页:$sql="............";$result=$m->query($sql);$count =count($result);$page = new ExPage($count);$result2=$m->query($sql.$page->get_limit);$this->as... 阅读全文
posted @ 2015-07-09 10:57 依凡王子 阅读(217) 评论(0) 推荐(0) 编辑
摘要: res里面的drawable(ldpi、mdpi、hdpi、xhdpi、xxhdpi)(1)drawable-hdpi里面存放高分辨率的图片,如WVGA (480x800),FWVGA (480x854)(2)drawable-mdpi里面存放中等分辨率的图片,如HVGA (320x480)(3)d... 阅读全文
posted @ 2015-07-09 10:53 依凡王子 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1,用java代码隐藏:/**隐藏软键盘**/ View view = getWindow().peekDecorView(); if (view != null) { InputMethodManager inputmanger = (InputMethodManager) ... 阅读全文
posted @ 2015-07-09 10:52 依凡王子 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 设置方法:在AndroidManifest.xml中的Activity里加一个属性android:screenOrientation。例如设置该Activity为横向screenOrientation的值有以下几种:landscape:横向portrait:纵向unspecified:默认值,由系统... 阅读全文
posted @ 2015-07-09 10:49 依凡王子 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 只要将PullToRefreshListView源码中的:@Override protected void onRefreshing(final boolean doScroll) { /** * If we're not showing the Refreshing view, or the li... 阅读全文
posted @ 2015-07-09 10:46 依凡王子 阅读(1898) 评论(0) 推荐(0) 编辑