{"id":60587,"date":"2025-04-24T11:20:25","date_gmt":"2025-04-24T03:20:25","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60587\/"},"modified":"2025-04-24T11:20:25","modified_gmt":"2025-04-24T03:20:25","slug":"%e5%9c%a8ecshop%e4%b8%ad%e5%a6%82%e4%bd%95%e7%a6%81%e7%94%a8%e5%8f%b3%e9%94%ae%e5%92%8cf12-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60587\/","title":{"rendered":"\u5728ecshop\u4e2d\u5982\u4f55\u7981\u7528\u53f3\u952e\u548cF12"},"content":{"rendered":"<p>\u5728ecshop\u4e2d\u5982\u4f55\u7981\u7528\u53f3\u952e\u548cF12\uff0c\u627e\u5230ecshop\u7f51\u7ad9\u6839\u76ee\u5f55\/themes\/js\/common.js,\u5728\u6700\u540e\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a    <\/p>\n<pre>\r\n <span style=\"font-family: Arial, Verdana, sans-serif\">\/\/\u7981\u7528\u53f3\u952e\u548cF12<\/span><\/pre>\n<p>  \/\/\u65b9\u6cd5\u4e00   document.oncontextmenu = function () { return false; };   document.onkeydown = function () {   &nbsp; if (window.event &amp;&amp; window.event.keyCode == 123) {   &nbsp; &nbsp; event.keyCode = 0;   &nbsp; &nbsp; event.returnValue = false;   &nbsp; &nbsp; return false;   &nbsp; }   &nbsp;   \/\/\u65b9\u6cd5\u4e8c   &nbsp; &nbsp; var e = window.event || arguments[0];   &nbsp; &nbsp; \/\/\u5c4f\u853dF12   &nbsp; &nbsp; if(e.keyCode == 123) {   &nbsp; &nbsp; &nbsp; return false;   &nbsp; &nbsp; &nbsp; \/\/\u5c4f\u853dCtrl+Shift+I   &nbsp; &nbsp; } else if((e.ctrlKey) &amp;&amp; (e.shiftKey) &amp;&amp; (e.keyCode == 73)) {   &nbsp; &nbsp; &nbsp; return false;   &nbsp; &nbsp; &nbsp; \/\/\u5c4f\u853dShift+F10   &nbsp; &nbsp; } else if((e.shiftKey) &amp;&amp; (e.keyCode == 121)){   &nbsp; &nbsp; &nbsp; return false;   &nbsp; &nbsp; }   &nbsp;   &nbsp;   &nbsp;   &nbsp;   };<br \/>\n <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728ecshop\u4e2d\u5982\u4f55\u7981\u7528\u53f3\u952e\u548cF12\uff0c\u627e\u5230ecshop\u7f51\u7ad9\u6839\u76ee\u5f55\/themes\/js\/common.js,\u5728\u6700\u540e\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a \/\/\u7981\u7528\u53f3\u952e\u548cF12 \/\/\u65b9\u6cd5\u4e00 document.oncontextmenu = function () { return false; }; document.onkeydown = function () { &nbsp; if (window.event &amp;&amp; window.event.keyCode == 123) { &nbsp; &nbsp; event.keyCode = 0; &nbsp; &nbsp; event.returnValue = false; &nbsp; &nbsp; return false; &nbsp; } &nbsp; \/\/\u65b9\u6cd5\u4e8c &nbsp; &nbsp; var e = window.event || arguments[0]; &nbsp; &nbsp; \/\/\u5c4f\u853dF12 &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60587","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60587"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60587\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}