<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":18,"date":"2011-09-01T03:08:01","date_gmt":"2011-09-01T03:08:01","guid":{"rendered":"http:\/\/www.01xj.net\/b\/?p=18"},"modified":"2011-09-01T03:10:03","modified_gmt":"2011-09-01T03:10:03","slug":"js%e8%bf%94%e5%9b%9e%e4%b8%8a%e4%b8%80%e9%a1%b5%ef%bc%8c%e8%87%aa%e5%8a%a8%e5%88%b7%e6%96%b0%e8%87%aa%e8%ba%ab%e3%80%81%e7%88%b6%e9%a1%b5%e9%9d%a2%e8%af%ad%e5%8f%a5%e7%9a%84%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=18","title":{"rendered":"js\u8fd4\u56de\u4e0a\u4e00\u9875\uff0c\u81ea\u52a8\u5237\u65b0\u81ea\u8eab\u3001\u7236\u9875\u9762\u8bed\u53e5\u7684\u5b9e\u73b0"},"content":{"rendered":"<h2>history.go(-1):\u4e5f\u662f\u8fd4\u56de\u5f53\u524d\u9875\u7684\u4e0a\u4e00\u9875\uff0c\u4e0d\u8fc7\u8868\u5355\u91cc\u7684\u6570\u636e\u5168\u90e8\u8fd8\u5728<\/h2>\n<p>history.back(-1):\u76f4\u63a5\u8fd4\u56de\u5f53\u524d\u9875\u7684\u4e0a\u4e00\u9875\uff0c\u6570\u636e\u5168\u90e8\u6d88\u606f\uff0c\u662f\u4e2a\u65b0\u9875\u9762\u00a0<strong>js\u8fd4\u56de\u9875\u9762\u7684\u73b0<br \/>\n<\/strong>\u00a0 1. Javascript \u8fd4\u56de\u4e0a\u4e00\u9875 history.go(-1), \u8fd4\u56de\u4e24\u4e2a\u9875\u9762: history.go(-2);<br \/>\n\u00a0 2. history.back().<br \/>\n\u00a0 3. window.history.forward()\u8fd4\u56de\u4e0b\u4e00\u9875<br \/>\n\u00a0 4. window.history.go(\u8fd4\u56de\u7b2c\u51e0\u9875,\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8bbf\u95ee\u8fc7\u7684URL)\u00a0<\/p>\n<p>\u4f8b:<br \/>\n&lt;a href=&#8221;javascript:history.go(-1);&#8221;&gt;\u5411\u4e0a\u4e00\u9875&lt;\/a&gt;<br \/>\nresponse.Write(&#8220;&lt;script language=javascript&gt;&#8221;)<br \/>\nresponse.Write(&#8220;if(!confirm(&#8216;\u5b8c\u6210\u4efb\u52a1?&#8217;)){history.back();}&#8221;)<br \/>\nresponse.Write(&#8220;&lt;\/script&gt;&#8221;)<br \/>\nresponse.Write(&#8220;&lt;script language=javascript&gt;history.go(-1);&lt;\/script&gt;&#8221;)<br \/>\n&lt;a href=&#8221;javascript:history.go(-1);&#8221;&gt;\u5411\u4e0a\u4e00\u9875&lt;\/a&gt;<\/p>\n<p>&lt;a href=&#8221;javascript:history.back(-1);&#8221;&gt;\u8fd4\u56de\u4e0a\u4e00\u9875&lt;\/a&gt;<\/p>\n<p><strong>\u533a\u522b\uff1a<\/strong><\/p>\n<div>\u00a0<\/div>\n<p><strong>history.back(-1):\u76f4\u63a5\u8fd4\u56de\u5f53\u524d\u9875\u7684\u4e0a\u4e00\u9875\uff0c\u6570\u636e\u5168\u90e8\u6d88\u5931\uff0c\u662f\u4e2a\u65b0\u9875\u9762<\/strong><\/p>\n<p><strong>history.go(-1):\u4e5f\u662f\u8fd4\u56de\u5f53\u524d\u9875\u7684\u4e0a\u4e00\u9875\uff0c\u4e0d\u8fc7\u8868\u5355\u91cc\u7684\u6570\u636e\u5168\u90e8\u8fd8\u5728<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u00a0\u9875\u9762\u8df3\u8f6c:onclick=&#8221;window.location.href=&#8217;list.aspx'&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Javascript\u5237\u65b0\u9875\u9762\u7684\u51e0\u79cd\u65b9\u6cd5\uff1a<br \/>\n<\/strong>1\u00a0\u00a0\u00a0 history.go(0)<br \/>\n2\u00a0\u00a0\u00a0 location.reload()<br \/>\n3\u00a0\u00a0\u00a0 location=location<br \/>\n4\u00a0\u00a0\u00a0 location.assign(location)<br \/>\n5\u00a0\u00a0\u00a0 document.execCommand(&#8216;Refresh&#8217;)<br \/>\n6\u00a0\u00a0\u00a0 window.navigate(location)<br \/>\n7\u00a0\u00a0\u00a0 location.replace(location)<br \/>\n8\u00a0\u00a0\u00a0 document.URL=location.href<\/p>\n<p><strong>\u81ea\u52a8\u5237\u65b0\u9875\u9762\u7684\u65b9\u6cd5:<br \/>\n<\/strong>1.\u9875\u9762\u81ea\u52a8\u5237\u65b0\uff1a\u628a\u5982\u4e0b\u4ee3\u7801\u52a0\u5165&lt;head&gt;\u533a\u57df\u4e2d<br \/>\n&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;20&#8243;&gt;<br \/>\n\u5176\u4e2d20\u6307\u6bcf\u969420\u79d2\u5237\u65b0\u4e00\u6b21\u9875\u9762.<\/p>\n<p>2.\u9875\u9762\u81ea\u52a8\u8df3\u8f6c\uff1a\u628a\u5982\u4e0b\u4ee3\u7801\u52a0\u5165&lt;head&gt;\u533a\u57df\u4e2d<br \/>\n&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;20;url=https:\/\/www.01xj.net&#8221;&gt;<br \/>\n\u5176\u4e2d20\u6307\u969420\u79d2\u540e\u8df3\u8f6c\u5230<a href=\"https:\/\/www.01xj.net\">https:\/\/www.01xj.net<\/a>\u9875\u9762<\/p>\n<p>3.\u9875\u9762\u81ea\u52a8\u5237\u65b0js\u7248<br \/>\n&lt;script language=&#8221;JavaScript&#8221;&gt;<br \/>\nfunction myrefresh()<br \/>\n{<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 window.location.reload();<br \/>\n}<br \/>\nsetTimeout(&#8216;myrefresh()&#8217;,1000); \/\/\u6307\u5b9a1\u79d2\u5237\u65b0\u4e00\u6b21<br \/>\n&lt;\/script&gt;<\/p>\n<p><strong>ASP.NET\u5982\u4f55\u8f93\u51fa\u5237\u65b0\u7236\u7a97\u53e3\u811a\u672c\u8bed\u53e5<br \/>\n<\/strong>1.\u00a0\u00a0 this.response.write(&#8220;&lt;script&gt;opener.location.reload();&lt;\/script&gt;&#8221;);\u00a0<br \/>\n2.\u00a0\u00a0 this.response.write(&#8220;&lt;script&gt;opener.window.location.href = opener.window.location.href;&lt;\/script&gt;&#8221;);<br \/>\n3.\u00a0\u00a0 Response.Write(&#8220;&lt;script language=javascript&gt;opener.window.navigate(&#8221;\u4f60\u8981\u5237\u65b0\u7684\u9875.asp&#8221;);&lt;\/script&gt;&#8221;)<\/p>\n<p>JS\u5237\u65b0\u6846\u67b6\u7684\u811a\u672c\u8bed\u53e5<\/p>\n<p>\/\/\u5982\u4f55\u5237\u65b0\u5305\u542b\u8be5\u6846\u67b6\u7684\u9875\u9762\u7528\u00a0<br \/>\n&lt;script language=JavaScript&gt;<br \/>\n\u00a0\u00a0 parent.location.reload();<br \/>\n&lt;\/script&gt;<\/p>\n<p>\/\/\u5b50\u7a97\u53e3\u5237\u65b0\u7236\u7a97\u53e3<br \/>\n&lt;script language=JavaScript&gt;<br \/>\n\u00a0\u00a0\u00a0 self.opener.location.reload();<br \/>\n&lt;\/script&gt;<br \/>\n( \u6216 &lt;a href=&#8221;javascript:opener.location.reload()&#8221;&gt;\u5237\u65b0&lt;\/a&gt;\u00a0\u00a0 )<\/p>\n<p>\/\/\u5982\u4f55\u5237\u65b0\u53e6\u4e00\u4e2a\u6846\u67b6\u7684\u9875\u9762\u7528\u00a0<br \/>\n&lt;script language=JavaScript&gt;<br \/>\n\u00a0\u00a0 parent.\u53e6\u4e00FrameID.location.reload();<br \/>\n&lt;\/script&gt;<\/p>\n<p>\u5982\u679c\u60f3\u5173\u95ed\u7a97\u53e3\u65f6\u5237\u65b0\u6216\u8005\u60f3\u5f00\u7a97\u65f6\u5237\u65b0\u7684\u8bdd\uff0c\u5728&lt;body&gt;\u4e2d\u8c03\u7528\u4ee5\u4e0b\u8bed\u53e5\u5373\u53ef\u3002<br \/>\n&lt;body onload=&#8221;opener.location.reload()&#8221;&gt; \u5f00\u7a97\u65f6\u5237\u65b0<br \/>\n&lt;body onUnload=&#8221;opener.location.reload()&#8221;&gt; \u5173\u95ed\u65f6\u5237\u65b0<\/p>\n<p>&lt;script language=&#8221;javascript&#8221;&gt;<br \/>\nwindow.opener.document.location.reload()<br \/>\n&lt;\/script&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>history.go(-1):\u4e5f\u662f\u8fd4\u56de\u5f53\u524d\u9875\u7684\u4e0a\u4e00\u9875\uff0c\u4e0d\u8fc7\u8868\u5355\u91cc\u7684\u6570&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":3,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}