这样写可以吗?
<script type="text/javascript"> var num1,num2; num1 = 10; num1 = num1-5; num2 = num1+6; document.write("小明还剩:"+num1+"元"+"<br>"); document.write("小红花:"+num2+"元买个铅笔盒"); </script>
<script type="text/javascript"> var num1,num2; num1 = 10; num1 = num1-5; num2 = num1+6; document.write("小明还剩:"+num1+"元"+"<br>"); document.write("小红花:"+num2+"元买个铅笔盒"); </script>
2017-04-27
举报