{"id":1265,"date":"2014-12-16T11:22:03","date_gmt":"2014-12-16T03:22:03","guid":{"rendered":"https:\/\/cowmanchiang.me\/wp\/?p=1265"},"modified":"2023-10-31T15:44:26","modified_gmt":"2023-10-31T07:44:26","slug":"jquery-tablesorter","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=1265","title":{"rendered":"jQuery Tablesorter"},"content":{"rendered":"<p><a href=\"http:\/\/tablesorter.com\/docs\/\" title=\"jquery tablesorter\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a><\/p>\n<pre lang=\"html4strict\">\n<html>\n <head>\n  <link rel=\"stylesheet\" href=\"theme\/style.css\" type=\"text\/css\" id=\"\" media=\"print, projection, screen\" \/>\n  <script type=\"text\/javascript\" src=\"jquery.tablesorter.js\"><\/script>\n  <script type=\"text\/javascript\">\n   $(function() {\n    $(\"table\").tablesorter({\n     \/\/\u662f\u5426\u958b\u555fdebug\u6a21\u5f0f\uff0c\u5728console\u7aef\u986f\u793a\n     \/\/debug: true,\n     widgets: ['zebra'],\n     widthFixed: false,\n     headers:{\n      \/\/\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0c\u6703\u81ea\u52d5parser\u6bcf\u4e00\u6b04\u8cc7\u6599\u7684\u5c6c\u6027\uff0c\u4f46\u662f\u4e5f\u6709\u53ef\u80fd\u6703\u8b8a\u662f\u932f\u8aa4\u5c0e\u81f4\u7121\u6cd5\u6392\u5e8f\n      \/\/\u7b2c\u4e00\u6b04\u8cc7\u6599\u5c6c\u6027\u5f37\u5236\u8a2d\u70batext\n      0: { sorter: \"text\" },\n      \/\/\u95dc\u9589\u7b2c\u4e09\u6b04\u7684\u6392\u5e8f\u529f\u80fd\n      2: { sorter: false }\n     },\n     \/\/\u9810\u8a2d\u6392\u5e8f\u65b9\u5f0f\u70ba\u7b2c\u4e00\u6b04\uff0c\u5347\u51aa\n     sortList: [[0,0]]\n    });\n   });\n  <\/script>\n <\/head>\n <body>\n  <div data-role=\"main\" class=\"ui-content\">\n  <table id = \"tablePads\" class = \"tablesorter\" cellspacing=\"0\" BORDER=\"0\">\n   <thead>\n    <tr>\n     <th style=\"text-align:center\">Pad Name<\/th>\n     <th style=\"text-align:center\">Last Edit Date<\/th>\n     <th style=\"text-align:center\">Active<\/th>\n     <\/tr>\n   <\/thead>\n   <tbody>\n    <?php \u53d6\u8cc7\u6599\u7684\u8ff4\u5708;?>\n     <tr id=\"Pad<%=i%>\">\n      <td>\u8cc7\u65991<\/td>\n      <td>\u8cc7\u65992<\/td>\n      <td>\u8cc7\u65993<\/td>\n     <\/tr>\n    <?php } ?>\n   <\/tbody>\n  <\/table>\n  <\/div>\n <\/body>\n<\/html>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Pad Name Last Edit Date Active \u8cc7\u65991 \u8cc7\u65992 \u8cc7\u65993<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-1265","post","type-post","status-publish","format-standard","hentry","category-jquery"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1265"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions"}],"predecessor-version":[{"id":1971,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions\/1971"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}