为了账号安全,请及时绑定邮箱和手机立即绑定

document.write函数的用法?

document.write函数的用法?

慕的地8271018 2019-02-04 09:05:02
document.write函数的用法?
查看完整描述

2 回答

?
守候你守候我

TA贡献1802条经验 获得超10个赞

<!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.

Syntax

document.write(sText)
Parameters

sText Required. String that specifies the text and HTML tags to write.

Return Value

No return value.

Remarks

You 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.



查看完整回答
反对 回复 2019-03-17
  • 2 回答
  • 0 关注
  • 1001 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号