1,HTML source code£º <html> <head> <title>How to use Short</title> </head> <body> <script src="jsjava.js"></script> <script> var a=Short.checkValid(300000); document.write(a+"<br>"); var b=Short.checkValid(3000); document.write(b+"<br>"); try{ var b=Short.parseShort("3000d"); }catch(e){ document.write(e.message); } </script> </body> </html> 2,The display:

false
true
Not a number Exception!