This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Change{ | |
public static void main(String[] args){ | |
java.util.Scanner input = new java.util.Scanner(System.in); | |
System.out.println("本程序交换数字x和y的值!\n"); | |
System.out.println("请您分别输入数字x和y的值,并以回车结束回车 "); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GuessNums { | |
public static void main(String[] args){ | |
int[] nums = new int[100]; | |
for(int i = 0;i < nums.length;i++){ | |
nums[i] = i; | |
} | |
java.util.Random random = new java.util.Random(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
a();//页面加载执行a() | |
var i; | |
function a() { | |
alert("1"); | |
i = setTimeout("b()", 3000);//3秒后执行b() | |
} | |
function b() { | |
alert("2"); | |
clearTimeout(i); //清除延时代码 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---导入jar包或者使用maven | |
maven | |
<dependency> | |
<groupId>net.sourceforge.jexcelapi</groupId> | |
<artifactId>jxl</artifactId> | |
<version>2.6.12</version> | |
</dependency> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<span id="nowTime"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `province`; | |
CREATE TABLE `province` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(50) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=gbk; | |
-- ---------------------------- | |
-- Records of province | |
-- ---------------------------- | |
INSERT INTO `province` VALUES ('1', '北京市'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* <p> | |
* Title: HTML相关的正则表达式工具类 | |
* </p> | |
* <p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<button id="commit" disabled>提交</button> | |
<input id="checkboxId" type="checkbox" />选中后提交按钮可用 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<img src="http://img3.cache.netease.com/ent/2014/8/20/20140820195348e7e34.jpg" alt="成龙就房祖名吸毒道歉:我教子无方 很羞愧" width="310" height="220"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<span id="nowTime"></span> |
OlderNewer