{"id":260,"date":"2014-05-19T15:20:18","date_gmt":"2014-05-19T15:20:18","guid":{"rendered":"http:\/\/blog.yyhcw.com\/post\/260.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T07:54:17","slug":"","status":"publish","type":"post","link":"http:\/\/blog.yyhcw.com\/post\/260.html","title":{"rendered":"\u7528javascript\u8bbf\u95ee\u64cd\u4f5ciframe\u91cc\u7684dom"},"content":{"rendered":"<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5f88\u591a\u4eba\u4e00\u76f4\u90fd\u6709\u4e2a\u60f3\u6cd5\uff0c\u8981\u662f\u53ef\u4ee5\u968f\u5fc3\u6240\u6b32\u7684\u64cd\u4f5ciframe\u5c31\u597d\u4e86\u3002\u8fd9\u6837\u9759\u6001\u9875\u9762\u4e5f\u5c31\u6709\u4e86\u76f8\u5f53\u4e8e\u540e\u53f0\u52a8\u6001\u9875\u9762php,jsp,asp\u4e2dinclude\uff0crequire\u5b9e\u73b0<strong>\u7edf\u4e00\u591a\u9875\u9762\u5e03\u5c40<\/strong>\u7684\u80fd\u529b\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u901a\u8fc7Javascript\u7684\u5e2e\u5fd9\u6211\u4eec\u53ef\u4ee5\u50cf\u540e\u53f0\u4e00\u6837\u52a8\u6001\u52a0\u8f7d\u64cd\u4f5ciframe\u5bf9\u8c61\u5c5e\u6027src\u6307\u5411\u7684html\u9875\u9762\u7684\u5185\u5bb9\u3002\u8fd9\u6837\u7684\u64cd\u4f5c\u9700\u8981\u63d0\u4f9b\u4e24\u4e2a\u9875\u9762\uff0c\u4e00\u4e2a\u9875\u9762\u662fiframe\u6240\u5728\u9875\u9762(<strong>\u9875\u9762\u540d\u79f0\uff1aiPage.html<\/strong>)\uff0c\u53e6\u4e00\u4e2a\u9875\u9762\u662fiframe\u5c5e\u6027src\u6307\u5411\u9875\u9762\uff08<strong>\u9875\u9762\u540d\u79f0\uff1asrcPage.html<\/strong>\uff09\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong>iPage.html\uff0c&lt;body&gt;\u91ccdom\uff1a<\/strong><\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>&lt;iframeid=\u201ciId\u201cname=\u201ciName\u201csrc=\u201csrcPage.html\u201cscrolling=\u201cno\u201cframeborder=\u201c0\u201c&gt;&lt;\/iframe&gt;<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong>srcPage.html\uff0c&lt;body&gt;\u91ccdom\uff1a<\/strong><\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>&lt;h1&gt;\u59b9\u59b9\u7684\u4e00\u5929&lt;\/h1&gt;&nbsp;<\/p>\n<\/li>\n<li>\n<p>&lt;p&gt;\u65e9\u4e0a\u5403\u65e9\u70b9\uff0c\u4e2d\u5348\u7ea6\u4f1a\u5403\u996d\uff0c\u4e0b\u5348K\u6b4c\uff0c\u665a\u4e0a\u548c\u54e5\u54e5\u778e\u6298\u817e&lt;\/p&gt;<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0b\u9762\u8ba8\u8bbaie\u4e0bJS\u662f\u600e\u4e48\u64cd\u4f5c\u4ee5\u4e0a\u4e24\u4e2a\u9875\u9762\uff0c\u518d\u8ba8\u8bbafirefox\u7684\u505a\u6cd5\uff0c\u6700\u540e\u7ed9\u51fa\u517c\u5bb9ie,firefox\u6d4f\u89c8\u5668\u64cd\u4f5ciframe\u5bf9\u8c61\u7684\u65b9\u6cd5\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p><strong style=\"color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e00\u3001ie\u4e0b\u8bbf\u95ee\u64cd\u4f5ciframe\u91cc\u5185\u5bb9<\/strong><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">&nbsp;<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u90fd\u77e5\u9053iframe\u662f\u975e\u6807\u51c6html\u6807\u7b7e\uff0c\u5b83\u662f\u7531ie\u6d4f\u89c8\u5668\u63a8\u51fa\u7684\u591a\u5e03\u5c40\u6807\u7b7e, \u968f\u540eMozilla\u4e5f\u652f\u6301\u4e86\u8fd9\u4e2a\u6807\u7b7e\u3002(\u95f2\u8bdd\uff0c\u563f\u563f)<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">1. ie\u901a\u8fc7document.frames[&quot;IframeName&quot;]\u83b7\u53d6\u5b83\uff0c\u4f8b\u5b50\uff1a\u6211\u4eec\u5728<strong>iPage.html\u91cc\u8f93\u51fasrcPage.html\u91cch1\u7684\u5185\u5bb9\uff0cJS\u5982\u4e0b\uff1a<\/strong><\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>alert(document.frames[&quot;iName&quot;].document.getElementsByTagName(\u2018h1\u2018)[0].firstChild.data);<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4f60\u4f1a\u53d1\u73b0\u8fd9\u6837\u5728\u9875\u9762\u91cc\u52a0\u5165\u4ee3\u7801\uff0c\u597d\u50cf\u5e76\u6ca1\u6709\u8f93\u51fa\u60f3\u8981\u7684\u4e1c\u4e1c\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f\u8fd9\u4e2a\u6211\u4e5f\u6ca1\u6709\u641e\u6e05\u695a\uff0c\u53ea\u662f\u4e60\u60ef\u6027\u7684\u52a0\u5165\u4e86window.onload\u5c31\u6709\u8f93\u51fa\u4e86\uff08\u6ce8\uff1aJS\u4ee3\u7801\u90fd\u5199\u5230\u8fd9\u4e2a\u4e8b\u4ef6\u91cc\u53bb\uff09\uff0c\u77e5\u9053\u7684\u4eba\u58eb\u53ef\u5426\u544a\u8bc9\u6211\u4e0b\u3002why?\u66f4\u6539\u4e4b\u540e\u4ee3\u7801ie\u4e0b\u6709\u4e86\u8f93\u51fa\uff0cfirefox\u4e0bdocument.frames\u6ca1\u6709\u5b9a\u4e49\u9519\u8bef\u63d0\u793a\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>window.onload = (function(){&nbsp;<\/p>\n<\/li>\n<li>\n<p>&nbsp; alert(document.frames[&quot;iName&quot;].document.getElementsByTagName(\u2018h1\u2018)[0].firstChild.data);<\/p>\n<\/li>\n<li>\n<p>});<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">2. ie\u53e6\u4e00\u79cd\u65b9\u6cd5contentWindow\u83b7\u53d6\u5b83\uff0c\u4ee3\u7801\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>window.onload = (function(){&nbsp;<\/p>\n<\/li>\n<li>\n<p>&nbsp;variObj = document.getElementById(\u2018iId\u2018).contentWindow;<\/p>\n<\/li>\n<li>\n<p>&nbsp;alert(iObj.document.getElementsByTagName(\u2018h1\u2018)[0].firstChild.data);<\/p>\n<\/li>\n<li>\n<p>});<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6b64\u65b9\u6cd5\u7ecf\u8fc7ie6,ie7,firefox2.0,firefox3.0\u6d4b\u8bd5\u90fd\u901a\u8fc7\uff0c\u597d\u4e8b\u554a\uff01\u563f\u563f\u3002\uff08\u7f51\u4e0a\u4e00\u67e5\uff0c\u53d1\u73b0Mozilla Firefox iframe.contentWindow.focus\u7f13\u51b2\u533a\u6ea2\u51fa\u6f0f\u6d1e\uff0c\u6709\u811a\u672c\u6ce8\u5165\u653b\u51fb\u7684\u5371\u9669\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u540e\u6765\u542c\u8bf4\u53ef\u4ee5\u5728\u540e\u53f0\u9632\u6b62\u8fd9\u6837\u7684\u4e8b\u60c5\u53d1\u751f\uff0c\u7b97\u662f\u677e\u4e86\u53e3\u6c14\u3002\u4e0d\u8fc7\u8fd8\u662f\u5e0c\u671bfirefox\u65b0\u7248\u672c\u53ef\u4ee5\u89e3\u51b3\u8fd9\u6837\u7684\u5371\u9669\u3002\uff09<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">3.\u6539\u53d8srcPage.html\u91cch1\u6807\u9898\u5185\u5bb9\uff0c\u4ee3\u7801\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>iObj.document.getElementsByTagName(\u2018h1\u2018)[0].innerHTML=\u2018\u6211\u60f3\u53d8\u6210\u5979\u4e00\u5929\u7684\u4e00\u90e8\u5206\u2018;<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u901a\u8fc7contentWindow\u540e\u8bbf\u95ee\u91cc\u9762\u7684\u8282\u70b9\u5c31\u548c\u4ee5\u524d\u4e00\u6837\u4e86\u3002<\/p>\n<p><strong style=\"color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e8c\u3001firefox\u4e0b\u8bbf\u95ee\u64cd\u4f5ciframe\u91cc\u5185\u5bb9<\/strong><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">Mozilla\u652f\u6301\u901a\u8fc7IFrameElmRef.contentDocument\u8bbf\u95eeiframe\u7684document\u5bf9\u8c61\u7684W3C\u6807\u51c6\uff0c\u901a\u8fc7\u6807\u51c6\u53ef\u4ee5\u5c11\u5199\u4e00\u4e2adocument,\u4ee3\u7801\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>variObj = document.getElementById(\u2018iId\u2018).contentDocument;<\/p>\n<\/li>\n<li>\n<p>alert(iObj.getElementsByTagName(\u2018h1\u2018)[0].innerHTML=\u2018\u6211\u60f3\u53d8\u6210\u5979\u4e00\u5929\u7684\u4e00\u90e8\u5206\u2018);<\/p>\n<\/li>\n<li>\n<p>alert(iObj.getElementsByTagName(\u2018p\u2018)[0].firstChild.data);<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u517c\u5bb9\u8fd9\u4e24\u79cd\u6d4f\u89c8\u5668\u7684\u65b9\u6cd5\uff0c\u73b0\u5728\u4e5f\u51fa\u6765\u4e86\uff0c\u5c31\u662f\u4f7f\u7528contentWindow\u8fd9\u4e2a\u65b9\u6cd5\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u563f\u563f\uff01\u64cd\u4f5ciframe\u662f\u4e0d\u662f\u53ef\u4ee5\u968f\u5fc3\u6240\u6b32\u4e86\u5462\uff1f\u5982\u679c\u8fd8\u89c9\u5f97\u4e0d\u723d\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u91cd\u5199iframe\u91cc\u7684\u5185\u5bb9\u3002<\/p>\n<p><span style=\"color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; background-color: rgb(255, 255, 255);\">\u4e09\u3001\u91cd\u5199iframe\u91cc\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u901a\u8fc7designMode\uff08\u8bbe\u7f6e\u6587\u6863\u4e3a\u53ef\u7f16\u8f91\u8bbe\u8ba1\u6a21\u5f0f\uff09\u548ccontentEditable\uff08\u8bbe\u7f6e\u5185\u5bb9\u4e3a\u53ef\u7f16\u8f91\uff09\uff0c\u4f60\u53ef\u4ee5\u91cd\u5199iframe\u91cc\u7684\u5185\u5bb9\u3002\u4ee3\u7801\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>variObj = document.getElementById(\u2018iId\u2018).contentWindow;<\/p>\n<\/li>\n<li>\n<p>iObj.document.designMode = \u2018On\u2018;<\/p>\n<\/li>\n<li>\n<p>iObj.document.contentEditable = true;<\/p>\n<\/li>\n<li>\n<p>iObj.document.open();<\/p>\n<\/li>\n<li>\n<p>iObj.document.writeln(\u2018&lt;html&gt;&lt;head&gt;\u2018);<\/p>\n<\/li>\n<li>\n<p>iObj.document.writeln(\u2018&lt;style&gt;body {background:#000;font-size:9pt;margin: 2px; padding: 0px;}&lt;\/style&gt;\u2018);<\/p>\n<\/li>\n<li>\n<p>iObj.document.writeln(\u2018&lt;\/head&gt;&lt;body&gt;&lt;\/body&gt;&lt;\/html&gt;\u2018);<\/p>\n<\/li>\n<li>\n<p>iObj.document.close();<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u8fd9\u4e24\u4e2a\u5bf9\u8c61\u7684\u8d44\u6599\u53ef\u53c2\u8003\uff1a<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">firebug\u6d4b\u8bd5\u4ee5\u4e0a\u4ee3\u7801\u6027\u80fd,\u5982\u56fe<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6ce8\u91ca\u6389 iObj.document.designMode = \u2018On\u2019;<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">iObj.document.contentEditable = true;<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5982\u56fe\uff1a<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6548\u679c\u6ca1\u6709\u53d8\uff0c\u65f6\u95f4\u6548\u7387\u662f\u6ce8\u91ca\u524d\u7684\u5c06\u8fd1\u4e09\u500d\u3002\u563f\u563f\u3002\u90a3\u4e24\u4e2a\u5bf9\u8c61\u662f\u53c2\u8003\u7f51\u7edc\u4e00\u4e9b\u4eba\u7684\u5199\u6cd5\uff0c\u91cd\u5199iframe\u91cc\u5185\u5bb9\uff0c\u5176\u5b9e\u6ca1\u6709\u5fc5\u8981\u7528designMode\u548ccontentEditable\uff0c\u9664\u975e\u6709\u5176\u4ed6\u7684\u9700\u6c42\u3002<\/p>\n<p><strong style=\"color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56db\u3001iframe\u81ea\u9002\u5e94\u9ad8\u5ea6<\/strong><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6709\u4e86\u4e0a\u9762\u7684\u539f\u7406\u8981\u5b9e\u73b0\u8fd9\u4e2a\u76f8\u5f53\u7b80\u5355\uff0c\u5c31\u662f\u628aiframe\u7684height\u503c\u8bbe\u7f6e\u6210\u5b83\u91cc\u9762\u6587\u6863\u7684height\u503c\u5c31\u53ef\u4ee5\u3002\u4ee3\u7801\uff1a<\/p>\n<ol title=\"Double click to hide line number.\" style=\"list-style-type: none;\" class=\" list-paddingleft-2\">\n<li>\n<p>window.onload = (function(){&nbsp;<\/p>\n<\/li>\n<li>\n<p>var&nbsp;iObj = document.getElementById(\u2018iId\u2018);<\/p>\n<\/li>\n<li>\n<p>iObj.height =&nbsp; iObj.contentWindow.document.documentElement.scrollHeight;<\/p>\n<\/li>\n<li>\n<p>});<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 13.63636302947998px; line-height: 19.09090805053711px; white-space: normal; background-color: rgb(255, 255, 255);\">\u73b0\u5728\u5bf9JS\u64cd\u4f5ciframe\u4f60\u5df2\u7ecf\u6709\u4e86\u5168\u65b0\u7684\u8ba4\u8bc6\uff0c\u8bf4\u4e0d\u5b9a\u90a3\u5929\u4f1a\u56e0\u4e3a\u8fd9\u4e2a\u6709\u4ec0\u4e48\u65b0\u7684web\u6280\u672f\u540d\u8bcd\uff0c\u563f\u563f\uff0c\u81ed\u7f8e\u4e0b\uff01<\/p>\n<p>\u4ee5\u4e0a\u662f\u8f6c\u6765\u7684\u6587\u7ae0\uff01\u7559\u4e0b\u6765\u4ee5\u5907\u540e\u7528\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f88\u591a\u4eba\u4e00\u76f4\u90fd\u6709\u4e2a\u60f3\u6cd5\uff0c\u8981\u662f\u53ef\u4ee5\u968f\u5fc3\u6240\u6b32\u7684\u64cd\u4f5ciframe\u5c31\u597d\u4e86\u3002\u8fd9\u6837\u9759\u6001\u9875\u9762\u4e5f\u5c31\u6709\u4e86\u76f8\u5f53\u4e8e\u540e\u53f0\u52a8\u6001\u9875\u9762php, \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"views":234,"_links":{"self":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/260"}],"collection":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=260"}],"version-history":[{"count":0,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/260\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}