Rhino常用代码

2012-08-02

java.lang.Thread.sleep(1000);
1
2
var response = org.apache.struts2.ServletActionContext.getResponse();
response.setHeader("Content-type", "text/javascript;charset=UTF-8");
1
2
var request = org.apache.struts2.ServletActionContext.getRequest();
var referer = request.getHeader("Referer");
1
2
var simpleDateFormat = java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
var result = simpleDateFormat.format(new Date()));

s@zhso.netPay