- 博客(12)
- 资源 (4)
- 收藏
- 关注
原创 簡單的struts實例循序漸進
在RGM001.jsp中輸入用戶名後,然後得到這個值,alert下,沒有值不alert. function __doPostBack(method, key, sort) { var thisForm = document.forms[0]; thisForm.method.value = method;
2007-01-31 19:37:00 502
原创 多选框的验证。。。
sysid=request("sysid") syjie=request("syjie")%>function chk(){ var obj=document.myform; /*if(obj.jieci.vaulue=="") { alert("请选择实验节次"); obj.jieci.focus(); return false; }*/ for(var i=0;i { if(obj.
2007-01-27 11:38:00 1194
原创 reverse()翻转
public class IntReverse{ public static void main(String[] args) { int i=123456; String t = null; t = String.valueOf(i); StringBuffer s=new StringBuffer(t); s.reverse(); System.out.pri
2007-01-27 11:34:00 552
原创 String的用法。。。
public class ToUpperCase { public static void main(String[] args)throws Exception { ToUpperCase toUpperCase = new ToUpperCase(); toUpperCase.a(); String str1="hello"; String str2="world"; String
2007-01-27 11:29:00 649
原创 阶乘
import java.util.Scanner;public class Digui { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner=new Scanner(System.in); int i=scan
2007-01-27 11:27:00 627
原创 BufferedReader
import java.io.*;public class ScannerDemo{ public static void main(String[] args)throws IOException { BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(System.in)); System.o
2007-01-27 11:23:00 659
原创 StringMethod
public class StringMethod { public static void main(String[] args)throws Exception { StringMethod toUpperCase = new StringMethod(); toUpperCase.a(); String str1="hello"; String str2="world"; Str
2007-01-27 11:18:00 719
原创 隐藏,或者显示
function onbuttonclick(){ if(document.all("button1").value=="隐藏") { document.all("button1").value="显示"; document.all("tdname").style.display="none"; } else { document.all("button1").value="隐藏"; do
2007-01-27 11:16:00 598
原创 添加行并删除行
New Document function doAdd() { otb = document.getElementById("aa"); //定义内表格对象otb。 var rowslegth = otb.rows.length; //获取当前层内表格的行数。 rowslegth = rowslegth +1; oTr = otb.insertRow(otb.rows.len
2007-01-27 11:15:00 1036
原创 下拉+选择
td,select,input{font-size:9pt} var subcat = new Array(); // 下拉列表数组定义 subcat[0] = new Array("计划采购员B","2","cs101"); subcat[1] = new Array("仓库管理员B","2","cs111
2007-01-27 11:12:00 588
原创 添加行(原创+ZT)
var count=0; function addFile() { count++; var str="名称:"; //document.getElementById(MyFile).insertAdjacentHTML("beforeEnd",str); document.getElementById("M
2007-01-27 11:09:00 569
原创 sql有用函數
SQL SERVER中delete [from] tablename where id=1在ORACLE中delete tablename1.删除数据truncate table tablename 2.察看數據類型信息describe tableName
2007-01-20 16:34:00 484
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人