📄 5-15.asp
字号:
<html>
<head>
<title>Server对象的应用</title>
</head>
<body>
<%
dim objfile
dim objstream1
set objfile=Server.CreateObject("Scripting.FileSystemObject")
set objstream1=objfile.CreateTextFile(Server.MapPath("../book")&"\data.txt",true)
'创建一个新的文本文件data.txt
objstream1.write Request.Form("s1")
'将文本区中的内容写入到文本文件data.txt中
objstream1.close
set objstream1=nothing
set objfile=nothing
%>
<script language="javascript">
window.location.href="5-14.asp";
</script>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -