{"id":693,"date":"2019-08-23T20:52:27","date_gmt":"2019-08-23T17:22:27","guid":{"rendered":"https:\/\/behnudi.ir\/?p=693"},"modified":"2024-08-21T11:15:57","modified_gmt":"2024-08-21T07:45:57","slug":"datatables-net","status":"publish","type":"post","link":"https:\/\/behnudi.ir\/?p=693","title":{"rendered":"\u0646\u0645\u0627\u06cc\u0634 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u062c\u062f\u0648\u0644 \u062f\u0631 \u0648\u0628"},"content":{"rendered":"<p>\u067e\u0644\u0627\u06af\u06cc\u0646 <strong>datatables<\/strong> \u06cc\u06a9 \u0627\u0641\u0632\u0648\u0646\u0647 \u0628\u0631\u0627\u06cc <strong>jquery<\/strong> \u0627\u0633\u062a. \u0627\u06cc\u0646 \u067e\u0644\u0627\u06af\u06cc\u0646 \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u0627\u067e\u0646 \u0633\u0648\u0631\u0633 \u0648 \u0622\u0632\u0627\u062f \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 HTML \u062f\u0631\u0633\u062a \u0634\u062f\u0647 \u0627\u0633\u062a.<!--more--><\/p>\n<p>\u0627\u06af\u0631 \u062c\u062f\u0648\u0644 \u0628\u0632\u0631\u06af\u06cc \u0631\u0627 \u0628\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0627\u062f\u06cc \u062f\u0631 \u0635\u0641\u062d\u0647 \u0648\u0628 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f. \u062d\u062a\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627 \u0645\u0634\u0627\u0628\u0647 \u0622\u0646 \u0646\u06cc\u0627\u0632 \u067e\u06cc\u062f\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.<\/p>\n<p>\u0627\u0645\u06a9\u0627\u0646\u0627\u062a <strong>datatables<\/strong>:<\/p>\n<ul>\n<li>\u0635\u0641\u062d\u0647 \u0628\u0646\u062f\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a<\/li>\n<li>\u062c\u0633\u062a\u062c\u0648 \u062f\u0631 \u062c\u062f\u0648\u0644<\/li>\n<li>\u0645\u0631\u062a\u0628 \u06a9\u0631\u062f\u0646 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0686\u0646\u062f \u0633\u062a\u0648\u0646<\/li>\n<li>\u062e\u0648\u0627\u0646\u062f\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0632 \u0645\u0646\u0627\u0628\u0639 \u06af\u0648\u0646\u0627\u06af\u0648\u0646<\/li>\n<li>\u0627\u0633\u062a\u0627\u06cc\u0644 \u0646\u0645\u0627\u06cc\u0634 \u06af\u0648\u0646\u0627\u06af\u0648\u0646<\/li>\n<li>\u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u062f\u0631 \u0645\u0648\u0628\u0627\u06cc\u0644<\/li>\n<li>\u0686\u0646\u062f \u0632\u0628\u0627\u0646\u0647<\/li>\n<li>\u063a\u06cc\u0631\u0647<\/li>\n<\/ul>\n<p>\u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647:<\/p>\n<p>\u06f1- \u0627\u0641\u0632\u0648\u062f\u0646 \u0641\u0627\u06cc\u0644 CSS \u0622\u0646 \u062f\u0631 \u0627\u0628\u062a\u062f\u0627\u06cc \u0641\u0627\u06cc\u0644 HTML \u062e\u0648\u062f:<\/p>\n<pre><code class=\"html\">&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"css\/datatables.min.css\"\/&gt;<\/code><\/pre>\n<p>\u06f2-\u00a0 \u0627\u0641\u0632\u0648\u062f\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u062f\u0631 \u067e\u0627\u06cc\u06cc\u0646 \u0641\u0627\u06cc\u0644 HTML \u062e\u0648\u062f:<\/p>\n<pre><code class=\"html\">&lt;script type=\"text\/javascript\" src=\"js\/jquery-3.3.1.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script type=\"text\/javascript\" src=\"js\/datatables.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script type=\"text\/javascript\" src=\"js\/persian.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>\u062e\u0637 \u0627\u0648\u0644 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 <strong>jquery <\/strong>\u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062f\u0631 \u062e\u0637 \u062f\u0648\u0645 \u0627\u0641\u0632\u0648\u0646\u0647 <strong>datatables<\/strong> \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u062f. \u0648 \u062e\u0637 \u0622\u062e\u0631 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u0641\u0627\u0631\u0633\u06cc \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u0645\u06cc\u200c\u0627\u0641\u0632\u0627\u06cc\u062f. \u0627\u0632 \u0642\u0628\u06cc\u0644 \u0633\u0648\u0631\u062a \u0635\u062d\u06cc\u062d \u0641\u0627\u0631\u0633\u06cc \u0648 &#8230;<\/p>\n<p>\u06f3- \u0628\u0647 \u062c\u062f\u0648\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631\u062a\u0627\u0646 \u06cc\u06a9 <strong>id<\/strong> \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u062f.(\u062f\u0631 \u0645\u062b\u0627\u0644 \u0645\u0627 <mark>my-table<\/mark>)<\/p>\n<pre><code class=\"html\">&lt;table id=\"my-table\"&gt;\r\n...\r\n&lt;\/table&gt;<\/code><\/pre>\n<p>\u06f4- \u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u062d\u0648\u0647 \u0627\u062c\u0631\u0627\u06cc datatables \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f:<\/p>\n<pre><code class=\"html\">&lt;script&gt;\r\n$('<mark>#my-table<\/mark>').dataTable( {\r\n  columnDefs: [{ type: 'pstring', targets: 0 }],\r\n  \"language\": { \"url\": \"<strong>js\/persian.json<\/strong>\" }\r\n} );\r\n&lt;\/script&gt;<\/code><\/pre>\n<p>\u0644\u0627\u0632\u0645 \u0628\u0647 \u0630\u06a9\u0631 \u0627\u0633\u062a \u062f\u0631 \u0641\u0627\u06cc\u0644 <strong>persian.json<\/strong> \u0645\u0639\u0627\u062f\u0644 \u0641\u0627\u0631\u0633\u06cc \u0639\u0628\u0627\u0631\u062a\u200c\u0647\u0627\u06cc \u062f\u0627\u062e\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u062f\u0631 \u0641\u0631\u06cc\u0645 \u0632\u06cc\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0622\u0646 \u0631\u0627 \u0645\u06cc \u0628\u06cc\u0646\u06cc\u062f.<\/p>\n<p><iframe loading=\"lazy\" style=\"border: 2px solid;\" src=\"https:\/\/behnudi.ir\/f\/iframe\/datatables\/\" width=\"100%\" height=\"500\"><\/iframe><\/p>\n<p>\u0628\u0631\u0627\u06cc \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u0628\u0647 \u0633\u0627\u06cc\u062a <a href=\"https:\/\/datatables.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">datatables.net<\/a> \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u067e\u0644\u0627\u06af\u06cc\u0646 datatables \u06cc\u06a9 \u0627\u0641\u0632\u0648\u0646\u0647 \u0628\u0631\u0627\u06cc jquery \u0627\u0633\u062a. \u0627\u06cc\u0646 \u067e\u0644\u0627\u06af\u06cc\u0646 \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u0627\u067e\u0646 \u0633\u0648\u0631\u0633 \u0648 \u0622\u0632\u0627\u062f \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 HTML \u062f\u0631\u0633\u062a \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n","protected":false},"author":1,"featured_media":694,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[46,44],"class_list":["post-693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-science","tag-javascript","tag-web-design"],"_links":{"self":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts\/693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=693"}],"version-history":[{"count":0,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/posts\/693\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=\/wp\/v2\/media\/694"}],"wp:attachment":[{"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/behnudi.ir\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}