{"id":18,"date":"2009-04-17T10:45:26","date_gmt":"2009-04-17T02:45:26","guid":{"rendered":"http:\/\/www.fujiangyun.com.cn\/?p=18"},"modified":"2009-04-17T10:45:26","modified_gmt":"2009-04-17T02:45:26","slug":"aspjs%e6%89%b9%e9%87%8f%e5%88%a0%e8%ae%b0%e5%bd%95js%e5%ae%9e%e7%8e%b0%e6%89%b9%e9%87%8f%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/www.fujiangyun.com\/blog\/?p=18","title":{"rendered":"ASP+JS\u6279\u91cf\u5220\u8bb0\u5f55&#038;JS\u5b9e\u73b0\u6279\u91cf\u4e0b\u8f7d"},"content":{"rendered":"<div id=\"blogDetailDiv\" style=\"FONT-SIZE: 16px\">\u4e00\u3001ASP+JS\u6279\u91cf\u5220\u9664\u6570\u636e\u5e93\u8bb0\u5f55\uff1a<br \/>\n       \u76ee\u7684\uff1a\u5220\u9664adta.mdb\u6570\u636e\u5e93\u4e2dgbook\u8868\u4e2did\u4ece768\u52302580\u7684\u8bb0\u5f55\uff08\u672c\u4eba\u524d\u6bb5\u65f6\u95f4\u7559\u8a00\u677f\u6ca1\u6709\u52a0\u9a8c\u8bc1\u7801\uff0c\u88ab\u65e0\u803b\u65e0\u804a\u4eba\u58eb\u6ce8\u5165\u5199\u4e86\u4e24\u5343\u591a\u6761\u5783\u573e\u7559\u8a00\uff0c\u52a0\u4e4b\u6ca1\u6709\u5b89\u88c5ms access\uff09<br \/>\n       \u5b9e\u73b0\u601d\u8def\uff08\u5047\u8bbe\u6240\u6709\u7684\u9875\u9762\u90fd\u548c\u6570\u636e\u5e93\u6587\u4ef6\u5728\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff09\uff1a<br \/>\n       1\u3001\u5148\u5229\u7528\u4e00\u4e2a\u9875\u9762\u67e5\u770b\u76ee\u524d\u8be5\u8868\u7684\u8bb0\u5f55\uff08show.asp\uff09\uff0c\u6e90\u7a0b\u5e8f\u5982\u4e0b\uff1a<br \/>\n&lt;%<br \/>\nset conn=server.createobject(&#8220;adodb.connection&#8221;)<br \/>\nconn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;server.mappath(&#8220;data.mdb&#8221;)<br \/>\nexec=&#8221;select * from gbook&#8221;<br \/>\nset rs=server.createobject(&#8220;adodb.recordset&#8221;)<br \/>\nrs.open exec,conn,1,1<br \/>\n%&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;\u663e\u793a\u5f53\u524d\u8868\u7684\u8bb0\u5f55&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body bgcolor=&#8221;#FFFFFF&#8221; text=&#8221;#000000&#8243;&gt;<br \/>\n&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243;&gt;<br \/>\n&lt;%<br \/>\ndo while not rs.eof<br \/>\n%&gt;&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;id&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;name&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;sex&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;content&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;date&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;%<br \/>\nrs.movenext<br \/>\nloop<br \/>\n%&gt;<br \/>\n&lt;\/table&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/div>\n<p>2\u3001\u7f16\u8f91\u4e00\u4e2a\u901a\u8fc7url\u4f20\u9012\u8981\u5220\u9664\u8bb0\u5f55\u7684id\u7684\u5220\u9664\u9875\u9762(del.asp)\uff0c\u6e90\u7a0b\u5e8f\u5982\u4e0b\uff1a<br \/>\n\u3000\u3000&lt;%<br \/>\n        set conn=server.createobject(&#8220;adodb.connection&#8221;)<br \/>\n        conn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;server.mappath(&#8220;data.mdb&#8221;)<br \/>\n        exec=&#8221;select * from gbook&#8221;<br \/>\n        set rs=server.createobject(&#8220;adodb.recordset&#8221;)<br \/>\n        rs.open exec,conn,1,1<br \/>\n\u3000\u3000getid=cint(request(&#8220;getid&#8221;))<br \/>\n\u3000\u3000sql=&#8221;delete from gbook where id=&#8221;&amp;getid<br \/>\n\u3000\u3000conn.execute(sql)<br \/>\n\u3000\u3000%&gt;<\/p>\n<p>3\u3001\u7f16\u8f91\u4e00\u4e2a\u9875\u9762shanchu.html\uff0c\u9875\u9762\u91cc\u7528JS\u5199\u4e00\u4e2a\u51fd\u6570function shanchu()\uff0c\u8be5\u51fd\u6570\u901a\u8fc7\u4e00\u4e2a\u5faa\u73af\u63a7\u5236\u53d8\u91cf\u6765\u6253\u5f00del.asp?getid=768\u5230del.asp?getid=2580\uff0c\u5229\u7528window.open\u6253\u5f00\u65b0\u7a97\u53e3\uff0c\u5ef6\u65f6500\u6beb\u79d2\u540e\u5173\u95ed\u7a97\u53e3\uff0c\u8fd9\u6837\u4e00\u76f4\u6267\u884c\u4e0b\u53bb\uff0c\u76f4\u5230\u6253\u5f00\u5173\u95ed\u4e86del.asp?getid=2580\u7ed3\u675f\uff08\u5efa\u8bae\u4f7f\u7528ie7\u6216\u8005\u5176\u4ed6\u6253\u5f00\u65b0\u7a97\u53e3\u5728\u65b0\u9009\u9879\u5361\u7684\u6d4f\u89c8\u5668\uff09\uff0c\u6e90\u7a0b\u5e8f\u5982\u4e0b\uff1a<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;\u5faa\u73af\u6279\u91cf\u5220\u9664\u8bb0\u5f55&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;script&gt;<br \/>\n&lt;!&#8211;<br \/>\nvar i;<br \/>\nfunction shanchu()<br \/>\n{<br \/>\n    for(i=768;i&lt;=2580;i++)<br \/>\n    {<br \/>\n         pageurl=&#8217;del.asp?getid=&#8217;+i;<br \/>\n        openpage=window.open(pageurl);<br \/>\n        setTimeout(&#8220;openpage.close()&#8221;,500);<br \/>\n    }<br \/>\n}<br \/>\n\/\/&#8211;&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n\u8fd9\u6837\u5c31\u57fa\u672c\u5b9e\u73b0\u4e86\u6279\u91cf\u5220\u9664\u8bb0\u5f55\uff0c\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7show.asp\u67e5\u770b\u7ed3\u679c\u3002<\/p>\n<p>\u4e8c\u3001JS\u5b9e\u73b0\u6279\u91cf\u4e0b\u8f7d<br \/>\n\u4eca\u5929\u5728\u7f51\u4e0a\u627e\u5230\u4e86\u6e05\u534e\u5927\u5b66\u4e25\u851a\u654f\u8001\u5e08\u7684\u6570\u636e\u7ed3\u6784\u89c6\u9891\u6559\u7a0b\uff0c\u4f46\u662f\u4ed6\u53ea\u7ed9\u9664\u4e86\u6bcf\u4e2aasf\u6587\u4ef6\u7684\u5730\u5740\uff0c\u5fc5\u987b\u81ea\u5df1\u590d\u5236\u5230\u4e0b\u8f7d\u5de5\u5177\u91cc\u9762\uff01\u4e8e\u662f\u6211\u53c8\u60f3\u5230\u4e4b\u524d\u6279\u91cf\u5220\u9664\u8bb0\u5f55\u65f6\u7528JS\u5199\u7684\u5faa\u73af\u6253\u5f00\u7a97\u53e3\u7684\u529e\u6cd5\uff01\u6e90\u7a0b\u5e8f\u5982\u4e0b\uff1a<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;\u6570\u636e\u7ed3\u6784\u89c6\u9891\u4e0b\u8f7d&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;script&gt;<br \/>\n&lt;!&#8211;<br \/>\nvar i;<br \/>\nfunction opendown()<br \/>\n{<br \/>\n    for(i=1;i&lt;=48;i++)<br \/>\n    {<br \/>\n        pageurl=&#8217;http:\/\/www.uzz.edu.cn\/jsjx\/kaoyan\/vod\/DataStructure\/&#8217;+i+&#8217;.asf&#8221;;<br \/>\n        openpage=window.open(pageurl);<br \/>\n\/\/      setTimeout(&#8220;openpage.close()&#8221;,50000);<br \/>\n  }<br \/>\n}<br \/>\nonload=opendown;<br \/>\n\/\/&#8211;&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt; <!--v:3.2--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5df1\u5199\u7684\u4e00\u4e2a\u7b80\u5355\u7684\u6279\u91cf\u5220\u9664\u8bb0\u5f55\u7684\u65b9\u6cd5<br \/>\n\u8fd8\u6709\u4e00\u4e2a\u6279\u91cf\u4e0b\u8f7d\u7684\u65b9\u6cd5<br \/>\n\u8fd9\u4e24\u4e2a\u4e1c\u4e1c\u91cc\u9762\u90fd\u5229\u7528\u4e86javascript\u5b9e\u73b0\u5faa\u73af\u6253\u5f00\u67d0\u4e2a\u7f51\u9875\u518d\u5173\u95ed\u67d0\u4e2a\u7f51\u9875<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[9,17],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-4","tag-asp","tag-javascript"],"_links":{"self":[{"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":0,"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fujiangyun.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}