📄 tryit_edit.asp
字号:
<%
dim strPath
filename=request.querystring("filename")
select case filename
case "1"
strPath="/catalog/cd"
case "2"
strPath="/catalog/cd[1]"
case "3"
strPath="/catalog/cd/price"
case "4"
strPath="/catalog/cd/price/text()"
case "5"
strPath="/catalog/cd[price>10.80]"
case "6"
strPath="/catalog/cd[price>10.80]/price"
end select
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="../tryittheme.css" />
</head>
<body>
<form action="tryit_view.asp" method="post" target="view">
<input name="submit" type="submit" value="显示结果">
<br /><br />
<textarea style="width:100%" name="code" wrap="logical" rows="21" cols="42">
<html>
<body>
<script type="text/vbscript">
set xmlDoc=CreateObject("msxml2.domdocument.4.0")
xmlDoc.async="false"
xmlDoc.load("cdcatalog.xml")
path="<%response.write strPath%>"
set nodes=xmlDoc.selectNodes(path)
for each x in nodes
document.write("<xmp>")
document.write(x.xml)
document.write("</xmp>")
next
</script>
</body>
</html>
</textarea>
</form>
<p> 可以编辑上面的文本框,然后单击“显示结果”按钮在右边查看执行结果。 </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -