输出 console输出,可在浏览器开发者工具控制台查看输出内容 alert输出,输出内容会以弹出框的方式输出 输入 调用prompt();弹出输入框var age = prompt( "Please tell me your age:" );