?? 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 + -