html study

来源:互联网 发布:软件怎么开发的 编辑:程序博客网 时间:2024/05/16 13:42
test.html
<script src="mytest.js"></script><script> myFunction()document.write("<br>");var n=addnum(5,3)var n1 = n.toString();document.write(n1);</script>


mytest.js

var firstname;firstname="Hege";document.write(firstname);function myFunction(){//alert("Hello Shanshan");document.write("<br>");document.write("just test");}function addnum(x,y){return x+y}



Result:



0 0
原创粉丝点击