- 浏览: 7105 次
最新评论
文章列表
Js验证身份证
/*
根据〖中华人民共和国国家标准 GB 11643-1999〗中有关公民身份号码的规定,公民身份号码是特征组合码,由十七位数字本体码和一位数字校验码组成。排列顺序从左至右依次为:六位数字地址码,八位数字出生 ...
var url = "one/readontheweb.jsp?unid="+unid;
window.location = encodeURI(url);
功能:在线预览
String htmlUrl="";
try{
String unid = request.getParameter("unid");
AppFile appFile = new AppFileManager(JNDI).doFindBeanByKey(unid);
appFile = null == appFile ? new App ...
String path = request.getContextPath();
String corejs = path + "/core/js";
request.setAttribute("path", path);
request.setAttribute("corejs", corejs);
var url = "${path}/sxElectronicTemplate/readontheweb.jsp?unid="+unid;
window.location = encodeURI(url);
< ...
sqlplus /nolog
select count(*) from v$process;
conn system/123456@orcl as sysdba
show parameter processes
show parameter sessions
修改processes和sessions值:sessions=(1.1*process+5)
select count(*) from v$process; --取得数据库目前的进程数。
select value from v$parameter where name = 'processes'; ...
<style type="text/css">
table{width:500px;}
caption{background:#DCA;}
.colorRed borderBlack{align:"right";}
</style>
<script type="text/javascript">
$(document).ready(function(){
//设置表格列的对齐方式
odd_even("#table_test");
//设置页面 ...
一定要在本地的eclipse上勾选
Allow termination of remote VM
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<user username="admin" password="admin" roles="admin,manager"/>
当忘记tomcat的用户名和密码可以这样设置
打开tomcat下的conf下的tomcat-user.xml文件添加以下代码
cd %CATALINE_HOME%/bin
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=80
startup
注意事项
1,JAVA_HOME中的路径不能用分号结尾,如C:\Program Files\Java\jdk1.7.0。
2,CATALINA ...
DELIMITER $$
USE `xiche`$$
DROP FUNCTION IF EXISTS `fn_getdistance`$$
CREATE DEFINER=`ruanyun`@`%` FUNCTION `fn_getdistance`(
in_from_x DECIMAL(20,10),
in_from_y DECIMAL(20,10),
in_to_x DECIMAL(20,10),
in_to_y DECIMAL(20,10)
) RETURNS DECIMAL(20,1)
BEGIN
RETURN ROUND(6378.138*2*ASIN(SQRT ...
long startTime = System.nanoTime();
File file = new File("D:"+File.separator+"1.jpg");
File file2 = new File("D:"+File.separator+"2.jpg");
InputStream input = new FileInputStream(file);
OutputStream out = new FileOutputStream(file2);
BufferedInputStream bu ...
public static int buildRandom(int length) {
int num = 1;
double random = Math.random();
if (random < 0.1) {
random = random + 0.1;
}
for (int i = 0; i < length; i++) {
num = num * 10;
}
return (int) ((random * nu ...
String date转 Date date
- 博客分类:
- java
String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
System.out.println(date);
DateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date dates = ft.parse(date);
System.out.println(dates);
// 将微信传入的CreateTime转换成long类型,再乘以1000(因为微信传入的时间是1970至今的 ...
List<User> user = new ArrayList<User>();
User u1 = new User();
u1.setId(110l);
u1.setUserName("张三");
user.add(u1);
u1 = new User();
u1.setId(112l);
u1.setUserName("李四");
user.add(u1);
u1 = new User();
u1.setId(113l);
u1.setUserName("王五") ...
javascript
- 博客分类:
- js
onblur="isMoney(this,'mon')"
function isMoney(findID,showID) {
var temp = document.getElementById(showID);
var pattern=/^\d+(\.\d+)?$/;
if(findID.value.length==0){
temp.innerHTML="<font color='#FF0000'>请输入金额</font>";
return false;
}else{
var ...