- 浏览: 10130 次
- 性别:
- 来自: 上海
最新评论
文章列表
<form id="form1" action="/action2.do">
<input type="hidden" name="action" action="action1">
</form>
首先我们用传统的方法
document.getElementById(form1).action="/action3";
这个方法报错了用alert(document.getElementById(form1).action);
可以看到弹出 ...
public class SequenceNumber {
public static String getSequenceNumber(){
Date d=new Date();
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddhhmmss");
String str=sdf.format(d);
String haomiao=String.valueOf(System.nanoTime());
str=str+haomiao.substring(haomiao.length()-6,haomiao ...
在linux下面
java -classpath .:mail.jar:activation-1.1.jar:mysql-connector-java-5.1.7-bin.jar sendmail
在windows下面则把 .:分隔符换成 .;就可以了。
在linux下面可以写在一个 sh文件里面。在windows下面可以写在一个批处理文件里
public void send() {
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.163.com"); //指定SMTP服务器
props.put("mail.smtp.auth", "true"); //指定是否需要SMTP验证
try {
Session mailSession = Ses ...