1,HTML source code£º <html> <head> <title>How to use Exception</title> </head> <body> <script src="jsjava.js"></script> <script> try{ throw new Exception(1,"This is a Exception"); }catch(e){ document.write(e.message); } </script> </body> </html> 2,The display:

The display text is:
This is a Exception