{"id":2461,"date":"2023-10-13T17:12:53","date_gmt":"2023-10-13T09:12:53","guid":{"rendered":"https:\/\/white-night.club\/?p=2461"},"modified":"2023-11-09T11:07:50","modified_gmt":"2023-11-09T03:07:50","slug":"pg7","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/13\/pg7\/","title":{"rendered":"Javascript\u81ea\u5b9a\u4e49\u9875\u9762\u590d\u5236\u4e8b\u4ef6"},"content":{"rendered":"\n<p>\u76d1\u542ccopy\u4e8b\u4ef6\u4ee5\u8fbe\u5230\u81ea\u5b9a\u4e49\u9875\u9762\u590d\u5236\u529f\u80fd\u7684\u6548\u679c\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6d4f\u89c8\u5668\u7684\u90e8\u5206\u62d3\u5c55\u63d2\u4ef6\uff08\u5982\u8fc5\u96f7\uff09\u4f1a\u5bfc\u81f4\u672c\u6587\u7684\u4ee3\u7801\u62a5\u9519\u3002\u4e0d\u8fc7\u8be5\u62a5\u9519\u4e0d\u5f71\u54cd\u529f\u80fd\uff0c\u800c\u4e14\u53ea\u6709\u5728f12\u5f00\u53d1\u8005\u63a7\u5236\u53f0\u624d\u80fd\u770b\u89c1\u3002\u4e0d\u8fc7\u5982\u679c\u89c9\u5f97\u770b\u7740\u62a5\u9519\u4e0d\u987a\u773c\u7684\u8bdd\uff0c\u5173\u95ed\u5bfc\u81f4\u4f60\u62a5\u9519\u7684\u62d3\u5c55\u5373\u53ef\uff08\u81ea\u5df1\u4e00\u4e2a\u4e00\u4e2a\u8bd5\uff09\u3002<\/cite><\/blockquote>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u4ec0\u4e48\u662fcopy\u4e8b\u4ef6<\/p>\n<cite><em>\u7528\u6237\u7684\u590d\u5236\u4e8b\u4ef6<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5f53\u7528\u6237\u5c1d\u8bd5\u5728\u9875\u9762\u4e0a\u590d\u5236\u67d0\u4e9b\u5185\u5bb9\u65f6\uff0c\u5c31\u4f1a\u89e6\u53d1copy\u4e8b\u4ef6\u3002\u800c\u901a\u8fc7\u76d1\u542ccopy\u4e8b\u4ef6\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7528\u6237\u5728\u9875\u9762\u4e0a\u7684\u590d\u5236\u7684\u5185\u5bb9\u3002\u6bd4\u5982\u5f53\u7528\u6237\u5c1d\u8bd5\u590d\u5236\u65f6\uff0c\u51fa\u73b0\u5f39\u7a97\u6216\u8df3\u8f6c\u9875\u9762\uff08\u5982\u767e\u5ea6\u6587\u5e93\uff09\uff1b\u53c8\u6216\u8005\u662f\u5728\u7528\u6237\u590d\u5236\u7684\u5185\u5bb9\u540e\u52a0\u4e0acopyright\u5185\u5bb9\uff08\u5982csdn\uff09\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u793a\u4f8b\uff1a\u7981\u6b62\u7528\u6237\u590d\u5236\uff0c\u5e76\u6dfb\u52a0\u5f39\u7a97\u6216\u8df3\u8f6c\u9875\u9762<\/p>\n<cite><em>\u4ee3\u7801\u548c\u6548\u679c\u793a\u4f8b<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5148\u653e\u4e00\u4e2a\u80fd\u81ea\u7531\u8f93\u5165\u548c\u590d\u5236\u7684\u6587\u672c\u6846\u5728\u8fd9\u91cc\uff0c\u65b9\u4fbf\u8c03\u8bd5\u3002<\/p>\n\n\n\n<!--\u53ef\u91cd\u7528\u533a\u5757\uff1a\u6d4b\u8bd5\u7528\u6587\u672c\u8f93\u5165\u6846-->\n<script src=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/vue\/3.3.4\/vue.global.js\"><\/script>\n\n\n<div id=\"app\">\n  <div class=\"inputform\">\n    <span>\u6d4b\u8bd5\u6587\u672c:<\/span>\n    <p style=\"white-space:pre-line;\">{{ message }}<\/p>\n    <textarea class=\"inputbox\" v-model=\"message\" placeholder=\"\u5728\u6b64\u8f93\u5165\u5185\u5bb9\"><\/textarea>\n  <\/div>\n<\/div>\n\n<script>\n  const {createApp,ref} =Vue\n  createApp({\n    setup(){\n      var message=ref(\" \")\n      return{\n        message\n      }\n    }\n  }).mount('#app')\n<\/script>\n\n<style>\n.inputform{\n  display: flex;\n  flex-direction: column; \n  align-items: center; \n  justify-content: center; \n\n  border: 1px solid;\n  padding: 20px;\n  \n}\n.inputbox{\n  background: #1d1d1d;\n  color: #00dfc4;\n\n  max-height: 500px;\n  max-width: 500px;\n  min-height: 200px;\n  min-width: 500px;\n}\n<\/style>\n\n\n\n\n<p>\u5148\u6765\u5b9e\u73b0\u7981\u6b62\u7528\u6237\u590d\u5236\u7684\u903b\u8f91\u3002\u8fd9\u91cc\u5148\u653e\u4f8b\u5b50\u3002\u53ef\u4ee5\u8bd5\u7740\u590d\u5236\u4e0b\u5217\u6587\u672c\uff0c\u518d\u7c98\u8d34\u5230\u4e0a\u65b9\u7684\u6587\u672c\u6846\u4e2d\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u590d\u5236\u6210\u529f\u3002<\/p>\n\n\n\n<div class=\"copypanel\">\n  <p id=\"content\">\n    -&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u4f60\u4e0d\u80fd\u590d\u5236\u8be5\u5185\u5bb9&nbsp;&nbsp;&nbsp;&nbsp;&lt;-\n  <\/p>\n  <p id=\"content2\">\n    -&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u4f60\u53ef\u4ee5\u590d\u5236\u8be5\u5185\u5bb9&nbsp;&nbsp;&nbsp;&nbsp;&lt;-\n  <\/p>\n<\/div>\n\n<script>\n  content.addEventListener('copy',(e)=>{\n    e.preventDefault();\n    e.clipboardData.setData('text\/plain','\u590d\u5236\u5931\u8d25\uff01');\n    alert(\"\u4e0d\u51c6\u590d\u5236\uff01\uff01\uff01\")\n  })\n<\/script>\n\n<style>\n.copypanel{\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n\n  border: 1px solid;\n  \n  animation: copyanimate 5s linear infinite;\n}\n<\/style>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u6837\u5f0f\u5b9e\u5728\u4e0d\u60f3\u6539\uff0c\u7422\u78e8css\u6837\u5f0f\u7684\u8bdd\u4e00\u7422\u78e8\u5c31\u662f\u4e00\u6574\u5929\u3002\u8fd8\u662f\u5148\u628a\u6587\u7ae0\u5b8c\u6210\u518d\u8bf4\u3002<\/cite><\/blockquote>\n\n\n\n<p>\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u5bf9&lt;p&gt;\u6bb5\u843d\u6807\u7b7e\u7684\u76d1\u542c\uff0c\u5f53\u7528\u6237\u5c1d\u8bd5\u590d\u5236\u8be5\u5185\u5bb9\u65f6\uff0c\u963b\u6b62\u9ed8\u8ba4\u7684\u590d\u5236\u4e8b\u4ef6\uff0c\u5e76\u5b9e\u73b0\u4f60\u81ea\u5b9a\u4e49\u7684\u4e8b\u4ef6\u3002\u8fd9\u91cc\u81ea\u5b9a\u4e49\u7684\u662f\u4fee\u6539\u7528\u6237\u526a\u8d34\u677f\u7684\u5185\u5bb9\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\u4e00\u4e2a\u8b66\u544a\u7684\u5f39\u7a97\u3002\u4ee5\u4e0b\u662f\u4ee3\u7801\uff08\u9664\u53bb\u4e86css\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"copypanel\"&gt;\n  &lt;p id=\"content\"&gt;\n    -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\u4f60\u4e0d\u80fd\u590d\u5236\u8be5\u5185\u5bb9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;-\n  &lt;\/p&gt;\n  &lt;p id=\"content2\"&gt;\n    -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\u4f60\u53ef\u4ee5\u590d\u5236\u8be5\u5185\u5bb9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;-\n  &lt;\/p&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\n  content.addEventListener('copy',(e)=&gt;{\n    e.preventDefault();\n    e.clipboardData.setData('text\/plain','\u590d\u5236\u5931\u8d25\uff01');\n    alert(\"\u4e0d\u51c6\u590d\u5236\uff01\uff01\uff01\")\n  })\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p>\u90a3\u8df3\u8f6c\u9875\u9762\u4e5f\u4e0d\u96be\u5b9e\u73b0\uff0c\u76f4\u63a5\u7ed9\u5b9e\u73b0\u6548\u679c\u548c\u4ee3\u7801\u5427\u3002\u73b0\u5728\u5f53\u4f60\u5c1d\u8bd5\u590d\u5236\u76f8\u5173\u5185\u5bb9\u65f6\uff0c\u4f1a\u81ea\u52a8\u6253\u5f00\u6211\u7684\u7f51\u7ad9\u9996\u9875\u3002<\/p>\n\n\n\n<div class=\"copypanel2\">\n  <p id=\"content3\">\n    ->&nbsp;&nbsp;&nbsp;&nbsp;\u4f60\u4e0d\u80fd\u590d\u5236\u8be5\u5185\u5bb9&nbsp;&nbsp;&nbsp;&nbsp;<-\n  <\/p>\n  <p id=\"content4\">\n    ->&nbsp;&nbsp;&nbsp;&nbsp;\u4f60\u53ef\u4ee5\u590d\u5236\u8be5\u5185\u5bb9&nbsp;&nbsp;&nbsp;&nbsp;<-\n  <\/p>\n<\/div>\n<script>\n  content3.addEventListener('copy',(e)=>{\n    e.preventDefault();\n    window.open(\"https:\/\/white-night.club\"); \n  })\n<\/script>\n<style>\n.copypanel2{\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  border: 1px solid;\n  \n  animation: copyanimate 5s linear infinite;\n}\n@keyframes copyanimate {\n    0%\n    {\n        filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 15px #0f0) drop-shadow( 0 0 30px #0f0) hue-rotate(0deg);\n    }\n    100%\n    {\n        filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 15px #0f0) drop-shadow( 0 0 30px #0f0) hue-rotate(360deg);\n    }\n  }\n<\/style>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"copypanel2\"&gt;\n  &lt;p id=\"content3\"&gt;\n    -&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\u4f60\u4e0d\u80fd\u590d\u5236\u8be5\u5185\u5bb9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;-\n  &lt;\/p&gt;\n  &lt;p id=\"content4\"&gt;\n    -&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\u4f60\u53ef\u4ee5\u590d\u5236\u8be5\u5185\u5bb9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;-\n  &lt;\/p&gt;\n&lt;\/div&gt;\n\n&lt;script&gt;\n  content3.addEventListener('copy',(e)=&gt;{\n    e.preventDefault();\n    window.open(\"https:\/\/white-night.club\"); \n  })\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u7531\u4e8ewordpress\u4e2d\u81ea\u5b9a\u4e49html\u533a\u5757\u5c31\u662f\u76f4\u63a5\u628a\u76f8\u5173\u4ee3\u7801\u76f4\u63a5\u63d2\u5165\u8fdb\u5f53\u524dhtml\u7684\u4e00\u4e2adiv\u5bb9\u5668\u4e2d\uff0c\u6240\u4ee5\u5982\u679c\u4e0d\u6307\u5b9a\u8981\u76d1\u542c\u7684\u5143\u7d20\uff0c\u4f1a\u5bfc\u81f4\u5f53\u524d\u9875\u9762\u7684\u6240\u6709\u5185\u5bb9\u90fd\u65e0\u6cd5\u590d\u5236\u3002\u60f3\u76d1\u542c\u5f53\u524d\u9875\u9762\u6240\u6709dom\u7684\u8bdd\u628acontent\u6362\u6210document.addEventListener\u5373\u53ef\u3002<\/cite><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u76d1\u542ccopy\u4e8b\u4ef6\u4ee5\u5b9e\u73b0\u81ea\u5b9a\u4e49\u590d\u5236<\/p>\n","protected":false},"author":1,"featured_media":3838,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[55,33],"tags":[56],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2461"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=2461"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/3838"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=2461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=2461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=2461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}