`
文章列表
这种情况,一般是编译不成功,他走的还是以前的代码,造成这种情况的原因,可能是包引用重复。。也就是build path下Liraries中引用的jar包重复。把重复的去掉就可以了。我出现了这样的错误,记到博客。引以为戒
转来的 求素数: package com.test; public class TestS extends Thread{ private final int number = 10000000; private final int nMax = (int) Math.sqrt( number); private final int []primeArr = new int[number+1]; private int count; private double timeBegin; private double timeEnd; public void ru ...
import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlButton; import com.gargoylesoftware.htmlunit.html.HtmlPage; import com.gargoylesoftware.htmlunit.html.HtmlPasswordInput; import com.gargoylesoftware. ...
package WiFiControl; import java.util.Arrays; import java.util.concurrent.atomic.AtomicInteger; public class cNum2 { private final int szArray = 10000000; private final int nMax = (int) Math.sqrt( szArray); private final byte[] array = new byte[szArray+1]; private final int szThre ...
package com.c.x; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; i ...
在web应用中是不能访问本地文件De,可以把要引用的文件移到项目中,通过相对路径获取。有时候我们就是需要访问本地文件,那么我们可以通过流的形式传入。例如: 在showPic.jsp中:<body> <img align="top" src="<%=request.getContextPath()%>/viewListener/viewWareCamera/picCreate.jsp?ppath=<bean:write name='cameraOperateForm' property='picture_postion'/>& ...
下面的例子是根据选择省份,查出省份下的仓库 js页面: <html> <head> <script type="text/javascript"> var xhr=false; function createXHR(){ try{ xhr=new XMLHttpRequest(); }catch(e){ try{ xhr=new ActiveXObject("Msxml2.XMLHTTP"); }catch(e1){ try{ xhr=new ActiveXObject(" ...
1.普通的select: <td align="right" >结算方式:</td> <td align="left" > <select name="balanceWay"  id="balanceWay" onmouseover="" class="otextcss"> <option value="0">请选择</option> ...

Jquery实现div拖拽

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>   <title> New Document </title>   <script type="text/javascript" src="E:/jquery-1.7.2.min.js"></script ...
数据库中的关于传入附件的字段我写了2个:一个存放内容accessory,一个存放文件的后缀filetype 上传:首先需要2个必须的jar: commons.io-1.4.0.jar commons.fileupload-1.2.0.jar XXX-servlet.xml中写入上传拦截: <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolve">        <property nam ...
Global site tag (gtag.js) - Google Analytics