Java代码
html
head
titlejavascript/title
script type="text/javascript"
function test(inVal){
try{
inVal=inVal.toUpperCase();
}catch(error){
alert("An exception has occurred.Error was:\n\n"+error.message);
}
}
/script
/head
body
input type="button" value="Test" onclick="test(null);"
/body
/html [ 查看全文 ]