{"id":313104,"date":"2024-05-20T22:56:12","date_gmt":"2024-05-20T14:56:12","guid":{"rendered":""},"modified":"2024-05-20T22:56:22","modified_gmt":"2024-05-20T14:56:22","slug":"android-%e7%b3%bb%e7%bb%9f%e7%a8%8b%e5%ba%8f%e4%b8%ad%e6%80%8e%e4%b9%88%e5%ae%9e%e7%8e%b0-activity-%e9%97%b4%e4%bc%a0%e9%80%92%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/313104.html","title":{"rendered":"Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\u600e\u4e48\u5b9e\u73b0 Activity \u95f4\u4f20\u9012\u53c2\u6570"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26233915\/8240e2b0-319e-4e4c-847f-ddc4c223a0d9.webp\" alt=\"Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\u600e\u4e48\u5b9e\u73b0 Activity \u95f4\u4f20\u9012\u53c2\u6570\" \/><\/p>\n<p><p><strong>Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\u8981\u5b9e\u73b0 Activity \u95f4\u4f20\u9012\u53c2\u6570\u53ef\u4ee5\u901a\u8fc7Intent\u5bf9\u8c61\u3001Bundle\u5bf9\u8c61\u3001startActivityForResult()\u65b9\u6cd5\u4ee5\u53ca\u5229\u7528\u5168\u5c40\u53d8\u91cf\u6216\u5355\u4f8b\u6a21\u5f0f\u3002<\/strong><\/p>\n<p>\u63cf\u8ff0\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff0cIntent\u5bf9\u8c61\u662f\u6700\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u7528\u6765\u542f\u52a8\u65b0\u7684Activity\uff0c\u8fd8\u53ef\u4ee5\u4f20\u9012\u7b80\u5355\u6570\u636e\u7c7b\u578b\u503c\u6216\u8005Parcelable\u548cSerializable\u5bf9\u8c61\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7Intent\u7684putExtra()\u65b9\u6cd5\u6765\u9644\u52a0\u989d\u5916\u7684\u6570\u636e\uff0c\u5728\u65b0\u7684Activity\u4e2d\u901a\u8fc7getIntent()\u65b9\u6cd5\u83b7\u53d6\u8fd9\u4e9b\u9644\u52a0\u5728Intent\u4e0a\u7684\u6570\u636e\u3002\u4f7f\u7528Intent\u8fdb\u884c\u6570\u636e\u4f20\u9012\u65f6\uff0c\u5f00\u53d1\u8005\u9700\u8981\u6ce8\u610f\u6570\u636e\u5927\u5c0f\uff0c\u56e0\u4e3aIntent\u4f20\u9012\u7684\u6570\u636e\u4e0d\u5b9c\u8fc7\u5927\uff0c\u4ee5\u907f\u514d\u5f15\u53d1\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528INTENT\u4f20\u9012\u57fa\u672c\u6570\u636e\u7c7b\u578b<\/h3>\n<\/p>\n<p><p>Android\u4e2dIntent\u662f\u7ec4\u4ef6\u4e4b\u95f4\u4f20\u9012\u6d88\u606f\u7684\u6865\u6881\u3002\u4f7f\u7528Intent\u4f20\u9012\u57fa\u672c\u6570\u636e\u7c7b\u578b\u975e\u5e38\u7b80\u5355\u3001\u76f4\u89c2\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5728\u53d1\u9001\u6570\u636e\u7684Activity\u4e2d\uff0c\u521b\u5efaIntent\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7putExtra()\u65b9\u6cd5\u653e\u5165\u9700\u8981\u4f20\u9012\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u4f20\u9012\u4e00\u4e2a\u5b57\u7b26\u4e32\u503c\u201cHello\u201d\u548cint\u578b\u53d8\u91cf5\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Intent intent = new Intent(CurrentActivity.this, TargetActivity.class);<\/p>\n<p>intent.putExtra(&quot;greeting&quot;, &quot;Hello&quot;);<\/p>\n<p>intent.putExtra(&quot;year&quot;, 2023);<\/p>\n<p>startActivity(intent);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u7740\uff0c\u5728\u63a5\u6536\u6570\u636e\u7684Activity\u4e2d\uff0c\u901a\u8fc7getIntent()\u65b9\u6cd5\u63a5\u6536Intent\u5bf9\u8c61\uff0c\u7136\u540e\u901a\u8fc7\u76f8\u5e94\u7684getXxxExtra()\u65b9\u6cd5\u53d6\u5f97\u4f20\u9012\u7684\u6570\u636e\u3002\u5982\u679c\u662f\u4e0a\u9762\u7684\u4f8b\u5b50\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Intent intent = getIntent();<\/p>\n<p>String greeting = intent.getStringExtra(&quot;greeting&quot;);<\/p>\n<p>int year = intent.getIntExtra(&quot;year&quot;, -1);\/\/ \u5982\u679c\u6ca1\u6709\u4f20\u9012\u8be5\u6570\u636e\uff0c\u5219\u9ed8\u8ba4\u503c\u4e3a-1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7Intent\u4f20\u9012\u57fa\u672c\u6570\u636e\u7c7b\u578b\u65e2\u65b9\u4fbf\u53c8\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u4f20\u9012\u5c11\u91cf\u7684\u3001\u7b80\u5355\u7684\u6570\u636e\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528BUNDLE\u4f20\u9012\u590d\u6742\u6570\u636e\u7c7b\u578b<\/h3>\n<\/p>\n<p><p>Bundle\u7c7b\u4f3c\u4e8eJava\u7684Map\uff0c\u53ef\u4ee5\u5305\u542b\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\uff0c\u5e76\u901a\u8fc7\u952e\u503c\u5bf9\u8fdb\u884c\u5b58\u50a8\u548c\u68c0\u7d22\u3002<\/p>\n<\/p>\n<p><p><strong>\u5728\u53d1\u9001\u6570\u636e\u7684Activity\u4e2d<\/strong>\uff0c\u9996\u5148\u521b\u5efaBundle\u5bf9\u8c61\u5e76\u5411\u5176\u4e2d\u6dfb\u52a0\u6570\u636e\uff0c\u7136\u540e\u521b\u5efaIntent\u5bf9\u8c61\uff0c\u901a\u8fc7putExtras()\u65b9\u6cd5\u5c06Bundle\u5bf9\u8c61\u6dfb\u52a0\u5230Intent\u4e2d\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Bundle bundle = new Bundle();<\/p>\n<p>bundle.putString(&quot;greeting&quot;, &quot;Hello&quot;);<\/p>\n<p>bundle.putInt(&quot;year&quot;, 2023);<\/p>\n<p>\/\/ \u53ef\u4ee5\u4f20\u9012\u66f4\u590d\u6742\u7684\u6570\u636e\u7c7b\u578b\uff0c\u6bd4\u5982\u81ea\u5b9a\u4e49\u7684Parcelable\u5bf9\u8c61<\/p>\n<p>MyParcelable myParcelable = new MyParcelable();<\/p>\n<p>bundle.putParcelable(&quot;myParcelable&quot;, myParcelable);<\/p>\n<p>Intent intent = new Intent(CurrentActivity.this, TargetActivity.class);<\/p>\n<p>intent.putExtras(bundle);<\/p>\n<p>startActivity(intent);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5728\u63a5\u6536\u6570\u636e\u7684Activity\u4e2d<\/strong>\uff0c\u901a\u8fc7getIntent()\u65b9\u6cd5\u83b7\u53d6Intent\uff0c\u518d\u8c03\u7528getExtras()\u65b9\u6cd5\u83b7\u53d6Bundle\u5bf9\u8c61\uff0c\u6700\u540e\u901a\u8fc7\u76f8\u5e94\u7684\u65b9\u6cd5\u53d6\u51fa\u6570\u636e\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Bundle bundle = getIntent().getExtras();<\/p>\n<p>if (bundle != null) {<\/p>\n<p>    String greeting = bundle.getString(&quot;greeting&quot;);<\/p>\n<p>    int year = bundle.getInt(&quot;year&quot;);<\/p>\n<p>    \/\/ \u83b7\u53d6\u81ea\u5b9a\u4e49Parcelable\u5bf9\u8c61<\/p>\n<p>    MyParcelable myParcelable = bundle.getParcelable(&quot;myParcelable&quot;);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Bundle\u975e\u5e38\u9002\u5408\u4f20\u9012\u5305\u542b\u590d\u6742\u6570\u636e\u7c7b\u578b\u6216\u662f\u8f83\u591a\u6570\u636e\u7684\u60c5\u5f62\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7STARTACTIVITYFORRESULT\u4f20\u9012\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u5e0c\u671b\u4ece\u542f\u52a8\u7684Activity\u4e2d\u83b7\u53d6\u7ed3\u679c\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 startActivityForResult() \u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5728\u5f53\u524dActivity\u4e2d\u542f\u52a8\u53e6\u4e00\u4e2aActivity\uff0c\u5e76\u4f20\u9012\u8bf7\u6c42\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Intent intent = new Intent(CurrentActivity.this, TargetActivity.class);<\/p>\n<p>startActivityForResult(intent, REQUEST_CODE);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u88ab\u542f\u52a8\u7684Activity\u5b8c\u6210\u64cd\u4f5c\u540e\uff0c\u901a\u8fc7setResult()\u65b9\u6cd5\u8bbe\u7f6e\u7ed3\u679c\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Intent resultIntent = new Intent();<\/p>\n<p>resultIntent.putExtra(&quot;result_key&quot;, &quot;Some result data&quot;);<\/p>\n<p>setResult(Activity.RESULT_OK, resultIntent);<\/p>\n<p>finish();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728\u539fActivity\u4e2d\u91cd\u5199onActivityResult()\u65b9\u6cd5\uff0c\u6765\u5904\u7406\u8fd4\u56de\u7684\u7ed3\u679c\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">@Override<\/p>\n<p>protected void onActivityResult(int requestCode, int resultCode, Intent data) {<\/p>\n<p>    super.onActivityResult(requestCode, resultCode, data);<\/p>\n<p>    if (requestCode == REQUEST_CODE &amp;&amp; resultCode == Activity.RESULT_OK) {<\/p>\n<p>        String result = data.getStringExtra(&quot;result_key&quot;);<\/p>\n<p>        \/\/ \u4f7f\u7528\u8fd4\u56de\u7684\u7ed3\u679c\u6570\u636e<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u4ece\u76ee\u6807Activity\u83b7\u53d6\u6267\u884c\u7ed3\u679c\u7684\u60c5\u5f62\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5355\u4f8b\u6a21\u5f0f\u6216\u5168\u5c40\u53d8\u91cf\u4f20\u9012\u590d\u6742\u5bf9\u8c61\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u6d89\u53ca\u5168\u5c40\u53d8\u91cf\u7684\u4f7f\u7528\uff0c\u6216\u5355\u4f8b\u6a21\u5f0f\u521b\u5efa\u7684\u7c7b\u6765\u5b58\u50a8\u548c\u4f20\u9012\u590d\u6742\u5bf9\u8c61\u6570\u636e\u3002\u5b8c\u6210\u8fd9\u6837\u7684\u64cd\u4f5c\uff0c\u9996\u5148\u8981\u521b\u5efa\u4e00\u4e2a\u542b\u6709\u9759\u6001\u6210\u5458\u53d8\u91cf\u7684\u7c7b\uff0c\u5b83\u53ef\u4ee5\u662f\u5355\u4f8b\u4e5f\u53ef\u4ee5\u662fApplication\u5b50\u7c7b\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8bbe\u7f6e\u9759\u6001\u53d8\u91cf\u6216\u8c03\u7528\u5355\u4f8b\u5bf9\u8c61\u7684setter\u65b9\u6cd5\u6765\u4f20\u9012\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Singleton.getInstance().setCustomObject(customObject);<\/p>\n<p>\/\/ \u6216<\/p>\n<p>MyApplication.customObject = customObject;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u63a5\u6536\u6570\u636e\u7684Activity\u4e2d\uff0c\u901a\u8fc7\u76f8\u5e94\u7684getter\u65b9\u6cd5\u6216\u76f4\u63a5\u8bbf\u95eeApplication\u7684\u9759\u6001\u6210\u5458\u53d8\u91cf\u6765\u83b7\u53d6\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">CustomObject customObject = Singleton.getInstance().getCustomObject();<\/p>\n<p>\/\/ \u6216<\/p>\n<p>CustomObject customObject = MyApplication.customObject;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u9002\u5408\u4f20\u9012\u751f\u547d\u5468\u671f\u957f\u3001\u590d\u6742\u7a0b\u5ea6\u9ad8\u7684\u5bf9\u8c61\uff0c\u4f46\u9700\u8c28\u614e\u4f7f\u7528\u4ee5\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5171\u4eab\u9996\u9009\u9879SharedPreferences\u4f20\u9012\u6570\u636e<\/h3>\n<\/p>\n<p><p>SharedPreferences\u9002\u7528\u4e8e\u4f20\u9012\u5c11\u91cf\u3001\u7b80\u5355\u7684\u6570\u636e\uff0c\u5e76\u4e14\u8fd9\u4e9b\u6570\u636e\u9700\u8981\u5728\u591a\u4e2a\u7ec4\u4ef6\u6216\u8005\u591a\u6b21\u4f1a\u8bdd\u4e2d\u4fdd\u6301\u3002<\/p>\n<\/p>\n<p><p>\u5728\u53d1\u9001\u6570\u636e\u7684Activity\u4e2d\uff0c\u5c06\u6570\u636e\u4fdd\u5b58\u81f3SharedPreferences\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">SharedPreferences sharedPreferences = getSharedPreferences(&quot;MyPrefs&quot;, MODE_PRIVATE);<\/p>\n<p>SharedPreferences.Editor editor = sharedPreferences.edit();<\/p>\n<p>editor.putString(&quot;text_data&quot;, &quot;Some text&quot;);<\/p>\n<p>editor.putInt(&quot;int_data&quot;, 123);<\/p>\n<p>editor.apply();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u53e6\u4e00\u4e2aActivity\u4e2d\uff0c\u4eceSharedPreferences\u4e2d\u8bfb\u53d6\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">SharedPreferences sharedPreferences = getSharedPreferences(&quot;MyPrefs&quot;, MODE_PRIVATE);<\/p>\n<p>String textData = sharedPreferences.getString(&quot;text_data&quot;, null);<\/p>\n<p>int intData = sharedPreferences.getInt(&quot;int_data&quot;, 0);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>SharedPreferences\u9002\u5408\u7528\u4e8e\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u5b58\u50a8\u548c\u8de8Activity\u4f20\u9012\u7075\u6d3b\u6027\u5c0f\u7684\u6570\u636e\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0Android\u7cfb\u7edf\u7a0b\u5e8f\u4e2dActivity\u95f4\u7684\u53c2\u6570\u4f20\u9012\uff0c\u6839\u636e\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u548c\u6570\u636e\u7c7b\u578b\u9009\u62e9\u5408\u9002\u7684\u4f20\u9012\u65b9\u5f0f\u3002\u5f00\u53d1\u8005\u5e94\u6839\u636e\u5b9e\u9645\u5f00\u53d1\u7ecf\u9a8c\u548c\u9700\u6c42\uff0c\u9009\u62e9\u6700\u4f18\u7684\u6570\u636e\u4f20\u9012\u89e3\u51b3\u65b9\u6848\u6765\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u600e\u4e48\u5728 Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\u5b9e\u73b0 Activity \u95f4\u7684\u6570\u636e\u4f20\u9012\uff1f<\/strong><br \/>\n\u5728 Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7 Intent \u5bf9\u8c61\u6765\u4f20\u9012\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528 putExtra() \u65b9\u6cd5\u5c06\u6570\u636e\u653e\u5165 Intent \u5bf9\u8c61\u4e2d\uff0c\u7136\u540e\u4f7f\u7528 startActivity() \u65b9\u6cd5\u542f\u52a8\u53e6\u4e00\u4e2a Activity\uff0c\u5e76\u5728\u76ee\u6807 Activity \u4e2d\u4f7f\u7528 getIntent() \u65b9\u6cd5\u83b7\u53d6\u4f20\u9012\u7684\u6570\u636e\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f20\u9012\u590d\u6742\u7c7b\u578b\u7684\u53c2\u6570\uff1f<\/strong><br \/>\n\u5982\u679c\u8981\u4f20\u9012\u590d\u6742\u7c7b\u578b\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u5c06\u5176\u5e8f\u5217\u5316\u4e3a\u53ef\u4f20\u9012\u7684\u683c\u5f0f\uff0c\u4f8b\u5982\u53ef\u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a JSON \u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528 putExtra() \u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u53e6\u4e00\u4e2a Activity\u3002\u5728\u76ee\u6807 Activity \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 JSON \u89e3\u6790\u5e93\u5c06\u5b57\u7b26\u4e32\u89e3\u6790\u4e3a\u5bf9\u8c61\u3002<\/p>\n<p><strong>\u8fd8\u6709\u5176\u4ed6\u5b9e\u73b0\u4f20\u9012\u53c2\u6570\u7684\u65b9\u6cd5\u5417\uff1f<\/strong><br \/>\n\u662f\u7684\uff0c\u9664\u4e86\u4f7f\u7528 Intent \u4f20\u9012\u53c2\u6570\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5168\u5c40\u53d8\u91cf\u3001SharedPreferences \u6216\u6570\u636e\u5e93\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0\u53c2\u6570\u4f20\u9012\u3002\u4f7f\u7528\u5168\u5c40\u53d8\u91cf\u53ef\u4ee5\u5728\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5171\u4eab\u6570\u636e\uff0cSharedPreferences \u53ef\u4ee5\u5c06\u6570\u636e\u5b58\u50a8\u5728\u672c\u5730\uff0c\u6570\u636e\u5e93\u53ef\u4ee5\u7528\u6765\u4fdd\u5b58\u5927\u91cf\u7684\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4e0d\u540c\u7684 Activity \u4e4b\u95f4\u5171\u4eab\u3002\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u8fdb\u884c\u53c2\u6570\u4f20\u9012\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Android \u7cfb\u7edf\u7a0b\u5e8f\u4e2d\u8981\u5b9e\u73b0 Activity \u95f4\u4f20\u9012\u53c2\u6570\u53ef\u4ee5\u901a\u8fc7Intent\u5bf9\u8c61\u3001Bundle\u5bf9\u8c61\u3001st [&hellip;]","protected":false},"author":3,"featured_media":313123,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/313104"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=313104"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/313104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/313123"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=313104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=313104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=313104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}