摘要: $('#'+selectName+' option').size()遍历select$('#select option').each( function(){ $(this).val(); $(this).text(); $(this).remove(); });select 选中的值本来以为jQuery("#select1").val();是取得选中的值,那么jQuery("#select1").text();就是取得的文本。这是不正确的,正确做法是:jQuery("#select1 optio 阅读全文
posted @ 2013-08-02 16:22 100Mbps 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package com.tydic.test;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class TestReflect{ public static T execute(Class clazz,String method,Object args,Class result) throws InstantiationException, IllegalAccessException { Object obj=clazz.newInsta... 阅读全文
posted @ 2013-08-02 16:13 100Mbps 阅读(224) 评论(0) 推荐(0) 编辑