document.write函数的用法?

document.write函数的用法?


慕的地8271018
浏览 972回答 2
2回答

守候你守候我

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT=""></HEAD><BODY><script language="javascript"><!--document.write("testtest<br/>testtest");// --></script></BODY></HTML>=================Writes one or more HTML expressions to a document in the specified window.Syntaxdocument.write(sText)ParameterssText Required. String that specifies the text and HTML tags to write.Return ValueNo return value.RemarksYou should not use the write or writeln methods on the current document after the document has finished loading unless you first call the open method, which clears the current document's window and erases all variables.
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MongoDB