---
title: "JavaScript的常用方法总结"
author: "AndLi"
date: "2012-03-26T23:29:31Z"
tags: []
categories: ["移动开发"]
slug: "javascript"
draft: false
lastmod: "2012-03-26T23:29:31Z"
id: 1464575
url: "https://andli.iteye.com/blog/1464575"
---

alert()是JavaScript的窗口对象方法，其功能是弹出一个具有OK对话框并显示（）中的字符串。

 

　Document. write()是文档对象的输出函数，其功能是将括号中的字符或变量值输出到窗口；

      Document. close()是将输出关闭。