- <html>
- <head>
- <title>算术赋值运算符</title>
- </head>
- <body>
- <script language="javascript">
- <!--
- a=10; b=10; c=10; d=10;
- a+=2;
- document.write("a+=2 a=",a,"<br>");
- b-=2;
- document.write("b-=2 b=",b,"<br>");
- c*=2;
- document.write("c*=2 c=",c,"<br>");
- d/=2;
- document.write("d/=2 d=",d,"<br>");
- //-->
- </script>
- </body>
- </html>