{"id":150242,"date":"2020-09-02T14:04:09","date_gmt":"2020-09-02T06:04:09","guid":{"rendered":"http:\/\/4563.org\/?p=150242"},"modified":"2020-09-02T14:04:09","modified_gmt":"2020-09-02T06:04:09","slug":"%e5%9c%a8%e5%ae%a2%e6%88%b7%e7%ab%af%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e9%87%8c%ef%bc%8c%e5%a6%82%e4%bd%95%e7%ae%a1%e7%90%86%e4%bc%97%e5%a4%9a%e7%9a%84-action-%e8%af%b7%e6%b1%82%e7%9a%84%e8%b7%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=150242","title":{"rendered":"\u5728\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5f00\u53d1\u91cc\uff0c\u5982\u4f55\u7ba1\u7406\u4f17\u591a\u7684 Action \u8bf7\u6c42\u7684\u8def\u5f84\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5728\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5f00\u53d1\u91cc\uff0c\u5982\u4f55\u7ba1\u7406\u4f17\u591a\u7684 Action \u8bf7\u6c42\u7684\u8def\u5f84\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <span><i><\/i> 14<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5ba2\u6237\u7aef\u7a0b\u5e8f\u6709\u7684\u529f\u80fd\u5fc5\u987b\u8bf7\u6c42\u7f51\u7edc\u540e\u53f0\u624d\u80fd\u6267\u884c\u6210\u529f\u3002==\u53ef\u80fd\u4f1a\u7528\u5230\u5f88\u591a\u8bf7\u6c42 action \u7684 path\uff0c\u90a3\u4e48\u5404\u4f4d\u662f\u600e\u4e48\u7ba1\u7406\u7e41\u6742\u7684 action \u8bf7\u6c42 path \u5462\u5462\uff1f<\/p>\n<p>\u5728\u6211\u8fd8\u53ea\u77e5\u9053 jquery \u65f6\u5019\uff0c\u6211\u90fd\u662f\u628a\u76f4\u63a5\u8bf7\u6c42\u76f4\u63a5\u5199\u5728 jquery \u7684 ajax \u7684\u8bf7\u6c42 action \u53c2\u6570\u91cc\uff0c\u6709\u4e00\u5929\u77e5\u9053\u4e86 vue \u8fd9\u4e2a\u6846\u67b6\uff0c\u4e8e\u662f\u6211\u628a\u4e00\u4e2a\u9875\u9762\u4f1a\u7528\u5230\u7684\u6240\u6709\u4e1a\u52a1\u8bf7\u6c42\u90fd\u914d\u7f6e\u5728 vue \u7684 json \u4ee3\u4f53\u7801\u5185\u7684\u67d0\u4e2a\u5bf9\u8c61\u5c5e\u6027\u5185\u5bb9\u3002\u628a ajax \u5e38\u7528 ajax \u5c01\u88c5\u6210\u5e38\u7528\u65b9\u6cd5\uff0c\u6bcf\u4e2a\u65b9\u6cd5\u90fd\u6709 4 \u4e2a\u53c2\u6570\u7c7b\u578b\uff0cpath\uff0cjson \u5bf9\u8c61\uff0c\u6210\u529f\u65b9\u6cd5\uff0c\u5931\u8d25\u65b9\u6cd5\u3002<\/p>\n<p>\u4ee5\u4e0a\u53ea\u662f\u7f51\u9875\u5ba2\u6237\u7aef\u7a0b\u5e8f<\/p>\n<p>\u90a3\u4e48 c\/s \u7a0b\u5e8f\uff0c\u6bd4\u5982 android \u7684\u8bdd\uff0c\u6211\u628a\u6240\u6709\u7684\u8bf7\u6c42 action \u7684 path \u90fd\u5199\u5728\u4e00\u4e2a\u7c7b\u91cc\uff0c\u90fd\u662f\u9759\u6001\u5bf9\u8c61\uff0c\u8981\u4e48\u9759\u6001\u5b57\u7b26\u4e32\u5b57\u6bb5\uff0c\u8981\u4e48\u8fd4\u56de\u503c\u4e3a\u5b57\u7b26\u4e32\u7684\u9759\u6001\u65b9\u6cd5\uff08\u5904\u7406\u6839\u636e\u7528\u6237\u7c7b\u578b\u8fd4\u56de\u5bf9\u5e94\u7684 Action \u7684 path \uff09\uff0c\u8fd9\u6837\u5728\u4e00\u4e2a\u6587\u4ef6\u91cc\uff0c\u6d4f\u89c8\u8c03\u7528\u4e5f\u90fd\u65b9\u4fbf\uff0c\u5982\u679c\u662f\u5206\u7c7b\u7684\u8bdd\uff0c\u5c31\u5728\u7c7b\u6587\u4ef6\u91cc\u7528\u5199\u4e2a\u5185\u90e8\u7c7b\uff0c\u5185\u90e8\u7c7b\u90fd\u7528\u9759\u6001 String \u5bf9\u8c61\u914d\u7f6e action \u8bf7\u6c42\u3002\u6240\u6709\u8bf7\u6c42\u6839\u8def\u5f84\u90fd\u7528\u4e00\u4e2a\u9759\u6001\u5c5e\u6027<\/p>\n<p>\u5f00\u53d1\u5ba2\u6237\u7aef\u7a0b\u5e8f\u7684\u5404\u4f4d\u662f\u600e\u4e48\u7ba1\u7406\u7684\uff1f\u5728\u7f51\u9875\u5f00\u53d1\u91cc\u7684 ajax \u4ee3\u7801\u91cc\u76f4\u63a5\u5199 action \u8bf7\u6c42 path\uff0c\u8fd8\u662f\u7a0d\u5fae\u5c01\u88c5\u4e00\u4e0b\uff1f\u5728 c\/s \u7a0b\u5e8f\u91cc\u53c8\u662f\u600e\u4e48\u7ba1\u7406\u7684\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3086974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yaphets666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             import request from &#8216;@\/router\/axios&#8217;<br \/>export const getSystemDict = (code) =&gt; {<br \/> return request({<br \/> url: xxxxxxxxx,<br \/> method: &#8216;get&#8217;<br \/> })<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3086975\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZSeptember <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u6bcf\u4e2a\u8bf7\u6c42\u5c01\u88c5\u4e00\u4e2a\u65b9\u6cd5\uff1f\u4ee3\u7801\u5e94\u8be5\u4f53\u73b0\u4e1a\u52a1\uff0c\u8c03\u7528\u65b9\u5e94\u8be5\u4e0d\u9700\u8981\u4e0d\u77e5\u9053\u8bf7\u6c42\u4ec0\u4e48\u5730\u5740\uff0c\u4ec0\u4e48 path\uff0c\u53ea\u9700\u8981\u77e5\u9053\u53c2\u6570\uff0c\u4ee5\u53ca\u8fd4\u56de\u7ed3\u679c\u3002<br \/>\u5982\u679c\u662f RESTful \u7684\uff0c\u5c31\u5c01\u88c5\u4e00\u4e2a Resource \u6709 CRUD \u65b9\u6cd5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3086976\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : youxiachai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5ba2\u6237\u7aef..\u5b8c\u5168\u662f\u4e1a\u52a1\u8c03\u7528\u4e86&#8230;.\u6839\u672c\u4e0d\u5b58\u5728\u7ba1\u7406&#8230;.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3086977\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iFlicker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Android \u554a \u5982\u679c\u4e1a\u52a1\u5e9e\u5927\u5c31\u5b8c\u5168\u6309\u4e1a\u52a1\u5206\u7c7b\uff0c\u89c4\u8303\u53ef\u4ee5\u7528 retrofit                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3086978\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unco020511 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             retrofit \u7b26\u5408\u4f60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5f00\u53d1\u91cc\uff0c\u5982\u4f55\u7ba1\u7406\u4f17\u591a\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150242"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150242"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150242\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150242"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}