private static object GetPropertyValue(object obj, string property) { System.Reflection.PropertyInfo propertyInfo = obj.Get...
分类:
其他好文 时间:
2014-06-28 12:19:33
阅读次数:
191
1. 定义变量名和函数名或关键字重名: typeerror 在网上随便copy了一个处理csv文件的源码,运行中总是在input时出错,差错没注意变量声明,导致浪费不少时间在红色剪头处,input的输出用input变量名存放,当再次调用input函数时,就会提示:TypeError: str obj...
分类:
编程语言 时间:
2014-06-27 21:40:21
阅读次数:
353
android 系统定制的小技巧(网络收集)1开机图片:android-logo-mask.pngandroid-logo-shine.png这两个图片一个在上一个在下./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_inter...
分类:
移动开发 时间:
2014-06-27 21:35:42
阅读次数:
299
#include "common.h"#include "pool.h"#include static inline void *objmem_to_obj(void *objmem){return objmem + sizeof(pool_obj_head_t);}static inline vo...
分类:
其他好文 时间:
2014-06-27 21:24:59
阅读次数:
292
prepare("show tables;");//准备预处理sql语句 $obj->execute();//执行预处理语句 $obj->fetchALL(PDO::FETCH_ASSOC);//获取结果集 #.插入 $obj = null; $sql = ...
分类:
数据库 时间:
2014-06-25 09:23:42
阅读次数:
244
prepare("select * from level_class where id = ?"); $id = 28; $obj->bindParam(1,$id,PDO::PARAM_INT); $obj->execute(); $result = $obj->f...
分类:
数据库 时间:
2014-06-25 09:16:27
阅读次数:
377
$.fn.serializeObject = function () { var obj = {}; var count = 0; $.each(this.serializeArray(), function (i, o) { ...
分类:
Web程序 时间:
2014-06-24 09:29:04
阅读次数:
319
转自:http://www.iitshare.com/ie8-not-use-native-json.html起因在项目中要将页面上的js对象传给后台,想到可以用json转成字符串传递。12var obj = {"a":1 "b":2, "c":3};var str = JSON.stringify...
分类:
Web程序 时间:
2014-06-23 07:36:06
阅读次数:
308
/**
* 在List集合中众多方法中,add(int index,Object obj)方法与set(int index,Object e)方法不易区分
* ,通过下面实例,可以看出两个方法中的区别
*/
package gao;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
...
分类:
编程语言 时间:
2014-06-21 20:41:05
阅读次数:
348
1、选择时间TimePicker 监听器:OnTimeChangedListener(obj,int hour,int minute);常用:获取时:getCurrentHour()、获取分钟:getCurrentMinute();设置24小时制:setIs24HourView(true)2、日期选...
分类:
移动开发 时间:
2014-06-21 18:01:16
阅读次数:
342