{"id":6499,"date":"2021-07-04T23:01:00","date_gmt":"2021-07-04T15:01:00","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=6499"},"modified":"2021-07-13T03:23:19","modified_gmt":"2021-07-12T19:23:19","slug":"%e4%bd%bf%e7%94%a8-python-%e4%bb%8e-0-%e5%bc%80%e5%8f%91%e5%b1%9e%e4%ba%8e%e4%bd%a0%e7%9a%84%e4%b8%aa%e4%ba%ba%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-17-%e7%af%87-%ef%bd%9c-%e4%bb%bb%e5%8a%a1%e7%9a%84","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=6499","title":{"rendered":"\u4f7f\u7528 Python \u4ece 0 \u5f00\u53d1\u5c5e\u4e8e\u4f60\u7684\u4e2a\u4eba\u7ba1\u7406\u7cfb\u7edf 17 \u7bc7 \uff5c \u4efb\u52a1\u7684\u72b6\u6001\u64cd\u4f5c"},"content":{"rendered":"\n<p>\u5f53\u7528\u6237\u521b\u5efa\u4e86\u4efb\u52a1\uff0c\u4f1a\u6709\u4e00\u4e9b\u72b6\u6001\u9700\u8981\u64cd\u4f5c\uff0c\u6bd4\u5982\u4efb\u52a1\u7684\u5b8c\u6210\uff0c\u6216\u8005\u4e0d\u5c0f\u5fc3\u70b9\u9519\u4e86\uff0c\u60f3\u8981\u8ba9\u4efb\u52a1\u663e\u793a\u4e3a\u300c\u672a\u5b8c\u6210\u300d\u72b6\u6001&#8230;\u5bf9\u4e8e\u8fd9\u4e9b\u4efb\u52a1\u7684\u72b6\u6001\u64cd\u4f5c\uff0c\u5982\u4f55\u5b9e\u73b0\u5b83\u4eec\u5462\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"805\" height=\"510\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/\u622a\u5c4f2021-07-04-\u4e0b\u53485.45.20.png\" alt=\"\" class=\"wp-image-6500\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/\u622a\u5c4f2021-07-04-\u4e0b\u53485.45.20.png 805w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/\u622a\u5c4f2021-07-04-\u4e0b\u53485.45.20-300x190.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/\u622a\u5c4f2021-07-04-\u4e0b\u53485.45.20-768x487.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/\u622a\u5c4f2021-07-04-\u4e0b\u53485.45.20-769x487.png 769w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<h2>\u5982\u4f55\u5b9e\u73b0\u300c\u4efb\u52a1\u72b6\u6001\u7684\u6539\u53d8\u300d<\/h2>\n\n\n\n<p>\u6211\u4eec\u60f3\u8981\u5b9e\u73b0\u7684\u662f\uff0c\u5f53\u7528\u6237\u70b9\u51fb checkbox \u6309\u94ae\u7684\u65f6\u5019\uff0c\u4f1a\u5c06\u5f53\u524d\u7684 item \u6d88\u5931\uff0c\u663e\u793a\u5230\u300c\u5df2\u5b8c\u6210\u300d\u83dc\u5355\u4e2d\uff0c\u540c\u65f6\uff0c\u8fd8\u4f1a\u8bf7\u6c42\u540e\u53f0\uff0c\u5c06\u6570\u636e\u5e93\u4e2d\u7684\u72b6\u6001\u503c\u8fdb\u884c\u6539\u53d8\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u76d1\u542c\u70b9\u51fb\u5b8c\u6210\u6309\u94ae\u7684\u4e8b\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u70b9 JQuery \u8bed\u6cd5\u6765\u5b9e\u73b0\u4e8b\u4ef6\u7684\u76d1\u542c\u4ee5\u53ca ajax \u7684\u8bf7\u6c42\u3002<\/p>\n\n\n\n<p>\u8fdb\u5165\u4f60\u7684\u9879\u76ee\uff0c\u5728 static\/js \u4e0b\u521b\u5efa\u4e00\u4e2a \u300ctodo.js\u300d\u3002<\/p>\n\n\n\n<p>\u5728\u91cc\u9762\u83b7\u53d6 document \u5bf9\u8c61\uff0c\u76d1\u542c\u70b9\u51fb:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;wpum_restrict_type&quot;:&quot;wpum_restrict_type_state&quot;,&quot;wpum_hide_state_in&quot;:false,&quot;wpum_hide_state_out&quot;:false,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">$(document).ready(function() {\n  $(':checkbox').on('click', onCheck);\n});\n\nfunction onCheck(){\n    alert('\u76d1\u542c\u5230\u4e86\u70b9\u51fb')\n}\n<\/pre><\/div>\n\n\n\n<p>\u5728 html \u4e2d\u5f15\u7528\u8fd9\u4e2a\u6587\u4ef6\uff1a<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D6499\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u8fd0\u884c\u4e00\u6ce2\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1632\" height=\"856\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/07\/2.gif\" alt=\"\" class=\"wp-image-6502\"\/><\/figure>\n\n\n\n<p>OK\uff0c\u90a3\u4e48\u4efb\u52a1\u7684\u5b8c\u6210\u4e0e\u64a4\u9500\u5c31\u5b9e\u73b0\u4e86\uff0c\u4f60\u53ef\u4ee5\u628a\u5b83\u4eec\u5b8c\u6210\u65f6\u95f4\u5c55\u793a\u51fa\u6765\u4e48\uff1f\u8fdb\u4e00\u6b65\uff0c\u53ef\u4e0d\u53ef\u4ee5\u5206\u9875\u663e\u793a\uff0c\u6309\u65f6\u95f4\u5c55\u793a\uff0c\u5173\u952e\u8bcd\u641c\u7d22\u5462\uff1f<\/p>\n\n\n\n<p>\u6211\u4eec\u4e0b\u7bc7\u89c1\uff0cpeace\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u7528\u6237\u521b\u5efa\u4e86\u4efb\u52a1\uff0c\u4f1a\u6709\u4e00\u4e9b\u72b6\u6001\u9700\u8981\u64cd\u4f5c\uff0c\u6bd4\u5982\u4efb\u52a1\u7684\u5b8c\u6210\uff0c\u6216\u8005\u4e0d\u5c0f\u5fc3\u70b9\u9519\u4e86\uff0c\u60f3\u8981\u8ba9\u4efb\u52a1\u663e\u793a\u4e3a\u300c\u672a\u5b8c\u6210\u300d\u72b6\u6001&#8230;\u5bf9\u4e8e\u8fd9\u4e9b\u4efb\u52a1\u7684\u72b6\u6001\u64cd\u4f5c\uff0c\u5982\u4f55\u5b9e\u73b0\u5b83\u4eec\u5462\uff1f \u5982\u4f55\u5b9e\u73b0\u300c\u4efb\u52a1\u72b6\u6001\u7684\u6539\u53d8\u300d \u6211\u4eec\u60f3\u8981\u5b9e\u73b0\u7684\u662f\uff0c\u5f53\u7528\u6237\u70b9\u51fb checkbox \u6309\u94ae\u7684\u65f6\u5019\uff0c\u4f1a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6501,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[99],"tags":[],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6499"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6499"}],"version-history":[{"count":4,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6499\/revisions"}],"predecessor-version":[{"id":6507,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6499\/revisions\/6507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/6501"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}