JavaScript学习笔记10-函数中调用其他函数

来源:互联网 发布:手机图像对比软件 编辑:程序博客网 时间:2024/06/04 17:44

本文记录下,在JavaScript中函数中如何调用其他函数的基本写法和用法,直接看一下demo.html

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head></head><body><script type ="text/javascript">function doFirst(){document.write("第一个函数");}function doSecond(){document.write("第二个函数");}function start(){doFirst();doSecond();}start();</script></body></html>


0 0
原创粉丝点击