720
技術社區[雲棲]
JSP頁麵
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*" errorPage="" %>
<html>
<head>
<title>JSP練習</title>
</head>
<%!
Date date;
int sum;
public int add(int m, int n){
return m + n;
}
%>
<body>
<font size=4><p>程序片創建Date對象:</p>
<%
date = new Date();
out.println(date);
sum = add(12, 34);
%>
<br>在下一行輸出和:<br>
<%=sum + 100 %> <!-- Java表達式 -->
</font>
</body>
</html>
最後更新:2017-04-02 00:06:49
上一篇:
dom4j寫xml文件測試
下一篇:
Makefile詳解(超級好)
nagios報錯:.stdio.h4561 error 'gets' undeclared here (not in a function)
免費OA企業用戶何去何從
docker container 設置編碼為utf8
Docker: the Linux container engine
阿裏數據庫內核月報:2017年05月
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE:掃描指定文件
Davinci DM6446開發攻略——LINUX GPIO驅動源碼移植
JavaScript的Date對象(二)
物聯網終端數量超百億 智能控製器廠商將會搶占先機
使用C#調用旋風快車和迅雷下載文件 也是C#調用Com的好例子!