脚本说明: 第一步:把如下代码加入<head区域中 <SCRIPT LANGUAGE="JavaScript" <!-- Begin function changeCase(frmObj) { var index; var tmpStr; var tmpChar; var preString; var postString; var strlen; tmpStr = frmObj.value.toLowerCase(); strLen = tmpStr.length; if (strLen 0) { for (index = 0; index < strLen; index++) { if (index == 0) { tm...[ 查看全文 ]
integer to String : int i = 42;String str = Integer.toString(i); or String str = "" + i double to String : String str = Double.toString(i); long to String : String str = Long.toString(l); float to String : String str = Float.toString(f); String to integer : str = "25";int i = Integer.valueOf(str).intValue(); ...[ 查看全文 ]