`
jing474
  • 浏览: 8143 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
java.lang.ClassNotFoundException和java.lang.NoClassDefFoundError的区别         这2个东西应该是java里很常见,很简单,他们都和classpath设定有关,但区别在哪里呢? 我们都知道java里生成对象有如下两种方式:         1:Object obj = new ClassName(); 直接new一个对象         2:Class clazz = Class.forName(ClassName);               Object obj = clazz.newInstance ...
  1. 在js中使用request.getAttribute('');取到的对象是object类型,如果需要将它与字符串比较,需要转化为string类型。   2.取出所有已勾选的name属性为rh_ids的checkbox的value值并将他们组装为一个字符串                 var s = "";                 $('input[name="rh_ids"]:checked').each(function(){                     s+=$(this).val()+',';        ...
BufferedReader br = new BufferedReader(new FileReader("d:\\test.txt")); String line = ""; Map<String,Integer> map = new HashMap<String,Integer>(); while(br.readLine()!=null){ line = br.readLine(); String[] strArray = ...
获取Select :  获取select 选中的 text :    $("#ddlRegType").find("option :selected").text();    获取select 选中的 value:    $("#ddlRegType ").val();    获取select 选中的索引:      $("#ddlRegType ").get(0).selectedIndex;   设置select :  设置select ...
   在IE浏览器下使用JavaScript打开模态窗口 window.showModalDialog(url,window,'dialogWidth:600px;dialogHeight:400px'); 但在提交模态窗口上的表单时有时会跳出一个新的窗口,解决: <form name="f1" method="post" runat="server" target="abc" >             <iframe name="abc"   width=" ...
  产生ConcurrentModificationException的原因就是: 执行remove(Object o)方法之后,modCount和expectedModCount不相等了。然后当代码执行到next()方法时,判断了checkForComodification(),发现两个数值不等,就抛出了该 Exception 。 要避免这个Exception ,就应该使用remove()方法。    解决:使用Iterator的remove方法;   下面是网上的其他解释,更能从本质上解释原因: Iterator 是 ...
Global site tag (gtag.js) - Google Analytics