`
文章列表
js:       $(function(){ var QuesListLi = $(".a").find("span"); var iNow = 0; h(); function h(){ var time; clearInterval(time); time = setInterval(function() { if(iNow >= QuesListLi.length-1) { iNow = 0 } else { iNow++; } ...

排序的几种写法

    博客分类:
  • java
冒泡 一 public class bubbleSort {    public bubbleSort(){        int a[]={1,54,6,3,78,34,12,45};        int temp=0;        for(int i=0;i<a.length;i++){           for(int j=i+1;j<a.length;j++){           if(a[i]>a[j]){               temp=a[i];               a[i]=a[j];           ...

hcharts视图报表

function queryloginUser() { //报表图   var loginStartTime=$("#loginStartTime").datebox("getValue");    var loginEndtime=$("#loginEndtime").datebox("getValue");   var SOURCE =$('#SOURCE').val(); if(loginStartTime=="" || loginEndtime=="&qu ...
这是java代码! 如若使用tomcat容器启动项目则需要加上这句代码,java的图片处理包需要图形环境,否则会报这个错server(X11 window server using ':0.0' )。而通过java -Djava.awt.headless=true 这个参数的指定就可以避免java 2d去找图形环境 System.setProperty("java.awt.headless", "true"); @RequestMapping("/getImage") public String getImage(){ return ...
这是java代码! 如若使用tomcat容器启动项目则需要加上这句代码,java的图片处理包需要图形环境,否则会报这个错server(X11 window server using ':0.0' )。而通过java -Djava.awt.headless=true 这个参数的指定就可以避免java 2d去找图形环境 System.setProperty("java.awt.headless", "true"); @RequestMapping("/getImage") public String getImage(){ return ...
这个问题还是有BUG 正在继续研究;我现在总结里几点清空缓存的方法 /* 清空页面的缓存信息 */ function clearLoginInput() { document.getElementById("cellPhoneL").value = ""; document.getElementById("passWord").value = ""; document.getElementById("login_img_code").value = ""; docum ...
/*过滤特殊符号*/ function xianzhi(){ var searchVideoDiv = $("#searchVideoName").val(); var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]") ; if(pattern.test(searchVideoDiv)){//条件判断 searchVideoDiv = searchVideoDiv.replace(patte ...
这是jsp页面的头部文件 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; % ...
java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.A ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet& ...
<style> div{ margin: 0 auto; width:100px; height:100px; background:url(img/QQ20150606151652.jpg); background-size: 75% 100%; background-repeat:no-repeat ; -webkit-transition:width 2s, height 2s, -webkit-transform 2s; /* Safari and Chrome */ } div:hover{ width:500px; he ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <header id="tab" style="height:50px;width:200px; background-color:red;display:none;"></header> <input id=" ...
此动画仅限谷歌浏览器···· <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <style type="text/css">                   //格式的大小与循环移动改变颜色 .myfirst{ height: 200px; background:red; width: 200px; po ...

html5画布=圆

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> window.onload = function() { alert(""); var c = document.getElementById("chacktext"); aler ...
var num=33; var number=0; do{ number=window.prompt("输入数字",number); document.write(typeof(number)); if(number==""||number==num){ break; } if(number>num){ document.write(number+"太大"); continue; }else if(number<num){ document.write(number ...
Global site tag (gtag.js) - Google Analytics