📄 global.asa
字号:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=gb_2312-80">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title></title>
</head>
<body>
<script language="VBScript" runat="Server">
Sub Application_OnStart
Set fs = Server.CreateObject("Scripting.FileSystemObject")
js_path = Server.MapPath("/js.txt")
Set txtfile = fs.OpenTextFile( js_path )
Application("counter") = txtfile.ReadLine
txtfile.Close
' 将FileSystemObject对象及counter.txt的实际路径
' 保存Application对象中
Set Application("fs") = fs
Application("js_path") = js_path
End Sub
Sub Application_OnEnd
' 将保存在 Application 对象中 FileSystemObject 对象
' 及js.txtfile 的实际路径读出来
Set fs = Application("fs")
js_path = Application("js_path")
Set txtfile = fs.CreateTextFile( js_path, True )
txtfile.WriteLine(Application("counter"))
txtfile.Close
End Sub
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -