{"id":1809,"date":"2019-07-16T14:03:06","date_gmt":"2019-07-16T06:03:06","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=1809"},"modified":"2019-07-16T14:03:06","modified_gmt":"2019-07-16T06:03:06","slug":"ecology%e5%bc%80%e5%8f%91%e4%b9%8b%e5%bc%80%e5%85%b3%e7%bb%84%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=1809","title":{"rendered":"ecology\u5f00\u53d1\u4e4b\u5f00\u5173\u7ec4\u4ef6"},"content":{"rendered":"<table width=\"1039\">\n<tbody>\n<tr>\n<td width=\"273\">\u7ec4\u4ef6<\/td>\n<td colspan=\"3\" width=\"766\">\u5f00\u5173\u7ec4\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u529f\u80fd\u8bf4\u660e<\/td>\n<td colspan=\"3\" width=\"766\">\u57fa\u4e8ejQuery\u7684\u5c06checkbox\u7f8e\u5316\u4e3a\u5f00\u5173\u7684\u63d2\u4ef6\uff0c\u5176\u7279\u70b9\u5982\u4e0b\uff1a<br \/>\n1\u3001\u5f00\u53d1\u4eba\u5458\u5f00\u53d1\u65f6\u5b8c\u5168\u6309\u7167\u539f\u6709\u7684checkbox\u5199\u6cd5\u4e66\u5199\uff0c\u589e\u52a0\u4e00\u4e2a\u5c5e\u6027\u6807\u8bc6\u5373\u53ef\uff1b<br \/>\n2\u3001\u7ee7\u627fcheckbox\u6846\u7684click\u4e8b\u4ef6\u89e6\u53d1\u673a\u5236\uff1b<br \/>\n3\u3001\u5e38\u7528\u4e8e\u7c7b\u4f3c\u3010\u542f\u7528\/\u7981\u7528\u3011\u7b49\u4e8c\u9009\u4e00\u72b6\u6001\u7684\u60c5\u5f62\u3002<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\u4f7f\u7528\u8bf4\u660e<\/td>\n<td colspan=\"3\" width=\"766\">1.\u5f15\u5165\u5982\u4e0bjs<br \/>\n\u5982\u679c\u6ca1\u6709\u5f15\u5165\u4ee5\u4e0bjs\uff0c\u90a3\u4e48\u9700\u8981\u5f15\u5165\u4ee5\u4e0bjs\uff1a<br \/>\n&lt;link href=&#8221;\/js\/checkbox\/jquery.tzCheckbox_wev8.css&#8221; type=text\/css rel=STYLESHEET&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;\/js\/ecology8\/jNice\/jNice\/jquery.jNice_wev8.js&#8221;&gt;&lt;\/script&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" width=\"766\">2\u3001\u7ed9\u9700\u8981\u683c\u5f0f\u5316\u4e3a\u5f00\u5173\u7ec4\u4ef6\u7684checkbox\u6846\u589e\u52a0\u5982\u4e0b\u5c5e\u6027\uff1a<br \/>\n&lt;INPUT type=&#8221;checkbox&#8221; <span style=\"color: #ff0000;\">tzCheckbox=&#8221;true&#8221;<\/span> class=InputStyle name=&#8221;norepeatedname&#8221; value=&#8221;1&#8243; &gt;<br \/>\n\u6ce8\u610f\uff1a<br \/>\n\u7ea2\u8272\u6807\u6ce8\u7684\u6837\u5f0f\u6216ID\u662f\u56fa\u5b9a\u7684\uff0c\u4e0d\u80fd\u6539\u52a8\uff01<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" width=\"766\">3\u3001\u5f53\u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u540e\uff0c\u5728\u9875\u9762\u4e0a\u8c03\u7528\u5982\u4e0b\u65b9\u6cd5<br \/>\njQuery(document).ready(function(){<br \/>\njQuery(&#8220;input[type=checkbox]&#8221;).each(function(){<br \/>\nif(jQuery(this).attr(&#8220;tzCheckbox&#8221;)==&#8221;true&#8221;){<br \/>\njQuery(this).tzCheckbox({labels:[&#8221;,&#8221;]});<br \/>\n}<br \/>\n});<br \/>\n});<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" width=\"766\">\u6548\u679c\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/07\/baf25e9cc95b26496aa6edc66e7bcf00.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u4f8b\u5b50<\/td>\n<td colspan=\"3\" width=\"766\">\u4f8b\u5b50\uff1ahttp:\/\/192.168.4.44:8080\/docs\/category\/DocMainCategoryBaseInfoEdit.jsp?id=15&amp;refresh=1<\/td>\n<\/tr>\n<tr>\n<td>\u7ec4\u4ef6\u521d\u59cb\u5316\u53c2\u6570<\/td>\n<td>\u662f\u5426\u5fc5\u987b<\/td>\n<td>\u7c7b\u578b<\/td>\n<td>\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" width=\"1039\">\u5bf9checkbox\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u529f\u80fd\u51fd\u6570<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd51<\/td>\n<td>\u8fd4\u56de\u7c7b\u578b<\/td>\n<td colspan=\"2\">\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">jQuery(obj).trigger(event,checked)<\/td>\n<td width=\"128\">\u65e0<\/td>\n<td colspan=\"2\" width=\"638\">\u7528\u4e8e\u66f4\u6539\u7f8e\u5316\u540e\u7684checkbox\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd5\u53c2\u6570<\/td>\n<td>\u662f\u5426\u5fc5\u987b<\/td>\n<td>\u7c7b\u578b<\/td>\n<td>\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">event<\/td>\n<td width=\"128\">\u662f<\/td>\n<td width=\"131\">string<\/td>\n<td width=\"507\">\u53d6\u503cchecked<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">checked<\/td>\n<td width=\"128\">\u5426<\/td>\n<td width=\"131\">boolean<\/td>\n<td width=\"507\">checkbox\u66f4\u6539\u540e\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd52<\/td>\n<td>\u8fd4\u56de\u7c7b\u578b<\/td>\n<td colspan=\"2\">\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">jQuery(obj).trigger(event,disabled)<\/td>\n<td width=\"128\">\u65e0<\/td>\n<td colspan=\"2\" width=\"638\">\u66f4\u6539checkbox\u6846\u7684\u7981\u7528\u548c\u542f\u7528\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd5\u53c2\u6570<\/td>\n<td>\u662f\u5426\u5fc5\u987b<\/td>\n<td>\u7c7b\u578b<\/td>\n<td>\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">event<\/td>\n<td width=\"128\">\u662f<\/td>\n<td width=\"131\">string<\/td>\n<td width=\"507\">\u53d6\u503cdisabled<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">disabled<\/td>\n<td width=\"128\">\u5426<\/td>\n<td width=\"131\">boolean<\/td>\n<td width=\"507\">checkbox\u66f4\u6539\u540e\u7981\u7528\u6216\u8005\u542f\u7528\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd53<\/td>\n<td>\u8fd4\u56de\u7c7b\u578b<\/td>\n<td colspan=\"2\">\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">jQuery(obj).trigger(event)<\/td>\n<td width=\"128\">\u65e0<\/td>\n<td colspan=\"2\" width=\"638\">\u89e3\u9664Checkbox\u6846\u7684\u7f8e\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u65b9\u6cd5\u53c2\u6570<\/td>\n<td>\u662f\u5426\u5fc5\u987b<\/td>\n<td>\u7c7b\u578b<\/td>\n<td>\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"273\">event<\/td>\n<td width=\"128\">\u662f<\/td>\n<td width=\"131\">string<\/td>\n<td width=\"507\">\u53d6\u503crbeauty<img decoding=\"async\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/07\/f2ac38ff12c183eb4a41cf8e677335dc.png\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.hefeiyu.com\">\u8d6b\u975e\u57df<\/a> &raquo; <a href=\"https:\/\/www.hefeiyu.com\/?p=1809\">ecology\u5f00\u53d1\u4e4b\u5f00\u5173\u7ec4\u4ef6<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u7ec4\u4ef6 \u5f00\u5173\u7ec4\u4ef6 \u529f\u80fd\u8bf4\u660e \u57fa\u4e8ejQuery\u7684\u5c06checkbox\u7f8e\u5316\u4e3a\u5f00\u5173\u7684\u63d2\u4ef6\uff0c\u5176\u7279\u70b9\u5982\u4e0b\uff1a 1\u3001\u5f00\u53d1\u4eba\u5458\u5f00\u53d1\u65f6\u5b8c\u5168\u6309\u7167\u539f\u6709\u7684checkbox\u5199\u6cd5\u4e66\u5199\uff0c\u589e\u52a0\u4e00\u4e2a\u5c5e\u6027\u6807\u8bc6\u5373\u53ef\uff1b 2\u3001\u7ee7\u627fcheckbox\u6846\u7684click\u4e8b\u4ef6\u89e6\u53d1\u673a\u5236\uff1b 3\u3001\u5e38\u7528\u4e8e\u7c7b\u4f3c\u3010\u542f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[588,102,589],"class_list":["post-1809","post","type-post","status-publish","format-standard","hentry","category-code","tag-checkbox","tag-js","tag-589"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1809"}],"version-history":[{"count":1,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1809\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1809\/revisions\/1810"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}