javascript的helloworld 3种方式

,,,& lt; !——类型,字符集,在

& lt;脚本type=" text/javascript " charset=皍tf - 8”祝辞,

//浏览器对象window 

窗口。警报(“hello world”);

//文档对象

document . write(“我是第一个程序”)

//把内容打印到控制台

console.info (“hello world”);

& lt;/script>


javascript的helloworld 3种方式