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