{"id":518,"date":"2023-02-25T15:36:16","date_gmt":"2023-02-25T07:36:16","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=518"},"modified":"2023-04-29T20:44:33","modified_gmt":"2023-04-29T12:44:33","slug":"react-native-learning-rn-calling-native-ui-components","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/react-native-learning-rn-calling-native-ui-components\/","title":{"rendered":"React Native\u5b66\u4e60\u4e4bRN\u8c03\u7528\u539f\u751fUI\u7ec4\u4ef6"},"content":{"rendered":"<p>React Native\u5df2\u7ecf\u5c01\u88c5\u4e86\u5927\u90e8\u5206\u6700\u5e38\u89c1\u7684\u7ec4\u4ef6\uff0c\u8b6c\u5982ScrollView\u548cTextInput\uff0c\u4f46\u4e0d\u53ef\u80fd\u5c01\u88c5\u5168\u90e8\u7ec4\u4ef6\u3002\u800c\u4e14\uff0c\u8bf4\u4e0d\u5b9a\u4f60\u66fe\u7ecf\u4e3a\u81ea\u5df1\u4ee5\u524d\u7684App\u8fd8\u5c01\u88c5\u8fc7\u4e00\u4e9b\u7ec4\u4ef6\uff0cReact Native\u80af\u5b9a\u6ca1\u6cd5\u5305\u542b\u5b83\u4eec\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u5728React Naitve\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5c01\u88c5\u548c\u690d\u5165\u5df2\u6709\u7684\u7ec4\u4ef6\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<p>\u9996\u5148\u51c6\u5907\u597d\u539f\u751fUI\u7ec4\u4ef6\uff1a\u81ea\u5b9a\u4e49View\uff0c\u7b2c\u4e09\u65b9SDK\uff0c\u7f51\u7edc\u4f9d\u8d56\uff0cjar\u5305<\/p>\n<p><!-- more --><\/p>\n<h2>KenBurnsView<\/h2>\n<p><code>KenBurnsView<\/code>\u7ec4\u4ef6\u53ef\u4ee5\u663e\u793a\u56fe\u7247\u7684\u4e00\u90e8\u5206\uff0c\u7136\u540e\u901a\u8fc7\u6539\u53d8\u663e\u793a\u4f4d\u7f6e\u6765\u663e\u793a\u5176\u4ed6\u90e8\u5206\uff0c\u914d\u4e0a\u5408\u9002\u7684\u56fe\u7247\uff0c\u53ef\u4ee5\u4ea7\u751f\u4e00\u79cd\u5728\u98de\u673a\u4e0a\u5f80\u4e0b\u770b\u7684\u89c6\u89c9\u6548\u679c\uff08\u4fef\u77b0\u56fe\uff09\u3002<\/p>\n<p><code>KenBurnsView<\/code>\uff1aAndroid library that provides an extension to ImageView that creates an immersive experience by animating its drawable using the Ken Burns Effect.<\/p>\n<p>GitHub\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/flavioarfaria\/KenBurnsView\">https:\/\/github.com\/flavioarfaria\/KenBurnsView<\/a><\/p>\n<p>\u914d\u7f6e build.gradle<\/p>\n<pre><code>dependencies {\n    compile &#039;com.flaviofaria:kenburnsview:1.0.7&#039;\n}<\/code><\/pre>\n<p>\u70b9\u51fb\u540c\u6b65\u6267\u884c Gradle Build<\/p>\n<h2>\u66b4\u9732\u539f\u751f\u89c6\u56fe\u7ed9React Native\u7684\u6b65\u9aa4\uff1a<\/h2>\n<h3>\u521b\u5efa\u4e00\u4e2aViewManager\u7684\u5b50\u7c7b<\/h3>\n<p>\u5b9e\u73b0<code>getName<\/code>\u548c<code>createViewInstance<\/code>\u65b9\u6cd5<\/p>\n<ul>\n<li>getName \u662f React Native \u7aef\u80fd\u591f\u8bc6\u522b\u7684\u7ec4\u4ef6\u540d\u79f0<\/li>\n<li>createViewInstance \u662f\u7ec4\u4ef6\u521d\u59cb\u5316\u65b9\u6cd5<\/li>\n<\/ul>\n<pre><code class=\"language-java\">public class KenBurnsViewManager extends SimpleViewManager&lt;KenBurnsView&gt; {\n    private ThemedReactContext context;\n\n    @Override\n    public String getName() {\n        return &quot;KenBurnsView&quot;;\n    }\n\n    @Override\n    protected KenBurnsView createViewInstance(ThemedReactContext reactContext) {\n        return null;\n    }\n}<\/code><\/pre>\n<h3>\u4f7f\u7528<code>@ReactProp<\/code>\uff08\u6216<code>@ReactPropGroup<\/code>\uff09\u6ce8\u89e3<\/h3>\n<p>\u8981\u5bfc\u51fa\u7ed9JavaScript\u4f7f\u7528\u7684\u5c5e\u6027\uff0c\u9700\u8981\u7533\u660e\u5e26\u6709<code>@ReactProp<\/code>\uff08\u6216 <code>@ReactPropGroup<\/code>\uff09\u6ce8\u89e3\u7684\u8bbe\u7f6e\u65b9\u6cd5\u3002\u65b9\u6cd5\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u4fee\u6539\u5c5e\u6027\u7684\u89c6\u56fe\u5b9e\u4f8b\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u8981\u8bbe\u7f6e\u7684\u5c5e\u6027\u503c\u3002\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u7c7b\u578b\u5fc5\u987b\u4e3a void\uff0c\u800c\u4e14\u8bbf\u95ee\u63a7\u5236\u5fc5\u987b\u88ab\u58f0\u660e\u4e3a public\u3002<\/p>\n<pre><code class=\"language-java\">\/\/\u66b4\u9732\u5c5e\u6027\n@ReactProp(name = &quot;imgSource&quot;)\npublic void setSource(KenBurnsView view, String source){\n    try {\n        InputStream inputStream = context.getAssets().open(source);\n        Drawable drawable = Drawable.createFromStream(inputStream, null);\n        view.setImageDrawable(drawable);\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}<\/code><\/pre>\n<p>JavaScript \u6240\u5f97\u77e5\u7684\u5c5e\u6027\u7c7b\u578b\u4f1a\u7531\u8be5\u65b9\u6cd5\u7b2c\u4e8c\u4e2a\u53c2\u6570\u7684\u7c7b\u578b\u6765\u81ea\u52a8\u51b3\u5b9a\u3002\u652f\u6301\u7684\u7c7b\u578b\u6709\uff1a<code>boolean<\/code>, <code>int<\/code>, <code>float<\/code>, <code>double<\/code>, <code>String<\/code>, <code>Boolean<\/code>, <code>Integer<\/code>, <code>ReadableArray<\/code>, <code>ReadableMap<\/code>\u3002<\/p>\n<p><code>@ReactProp<\/code>\u6ce8\u89e3\u5fc5\u987b\u5305\u542b\u4e00\u4e2a\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u53c2\u6570 name\u3002\u8fd9\u4e2a\u53c2\u6570\u6307\u5b9a\u4e86\u5bf9\u5e94\u5c5e\u6027\u5728 JavaScript \u7aef\u7684\u540d\u79f0\u3002<\/p>\n<p>\u9664\u4e86 name\uff0c<code>@ReactProp<\/code>\u6ce8\u89e3\u8fd8\u63a5\u53d7\u8fd9\u4e9b\u53ef\u9009\u53c2\u6570\uff1a<code>defaultBoolean<\/code>, <code>defaultInt<\/code>, <code>defaultFloat<\/code>\u3002\u8fd9\u4e9b\u53c2\u6570\u5fc5\u987b\u662f\u5bf9\u5e94\u7684\u57fa\u7840\u7c7b\u578b\u7684\u503c\uff08\u4e5f\u5c31\u662f boolean, int, float\uff09\uff0c\u8fd9\u4e9b\u503c\u4f1a\u88ab\u4f20\u9012\u7ed9 setter \u65b9\u6cd5\uff0c\u4ee5\u514d JavaScript \u7aef\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5728\u7ec4\u4ef6\u4e2d\u79fb\u9664\u4e86\u5bf9\u5e94\u7684\u5c5e\u6027\u3002\u6ce8\u610f\u8fd9\u4e2a\u201c\u9ed8\u8ba4\u201d\u503c\u53ea\u5bf9\u57fa\u672c\u7c7b\u578b\u751f\u6548\uff0c\u5bf9\u4e8e\u5176\u4ed6\u7684\u7c7b\u578b\u800c\u8a00\uff0c\u5f53\u5bf9\u5e94\u7684\u5c5e\u6027\u5220\u9664\u65f6\uff0cnull \u4f1a\u4f5c\u4e3a\u9ed8\u8ba4\u503c\u63d0\u4f9b\u7ed9\u65b9\u6cd5\u3002<\/p>\n<p>\u4f7f\u7528<code>@ReactPropGroup<\/code>\u6765\u6ce8\u89e3\u7684\u8bbe\u7f6e\u65b9\u6cd5\u548c<code>@ReactProp<\/code>\u4e0d\u540c\u3002\u8bf7\u53c2\u89c1<code>@ReactPropGroup<\/code>\u6ce8\u89e3\u7c7b\u6e90\u4ee3\u7801\u4e2d\u7684\u6587\u6863\u6765\u83b7\u53d6\u66f4\u591a\u8be6\u60c5\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u5728ReactJS\u4e2d\uff0c\u6bcf\u4fee\u6539\u4e00\u4e2a\u5c5e\u6027\u90fd\u4f1a\u5f15\u53d1\u4e00\u6b21\u5bf9\u8bbe\u7f6e\u65b9\u6cd5\u7684\u8c03\u7528\u3002\u6709\u4e00\u79cd\u4fee\u6539\u60c5\u51b5\u662f\uff0c\u79fb\u9664\u6389\u4e4b\u524d\u8bbe\u7f6e\u7684\u5c5e\u6027\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u8bbe\u7f6e\u65b9\u6cd5\u4e5f\u4e00\u6837\u4f1a\u88ab\u8c03\u7528\uff0c\u5e76\u4e14\u201c\u9ed8\u8ba4\u201d\u503c\u4f1a\u88ab\u4f5c\u4e3a\u53c2\u6570\u63d0\u4f9b\uff08\u5bf9\u4e8e\u57fa\u7840\u7c7b\u578b\u6765\u8bf4\u53ef\u4ee5\u901a\u8fc7 defaultBoolean, defaultFloat \u7b49 @ReactProp \u7684\u5c5e\u6027\u63d0\u4f9b\uff09\uff0c\u800c\u5bf9\u4e8e\u590d\u6742\u7c7b\u578b\u6765\u8bf4\u53c2\u6570\u5219\u4f1a\u8bbe\u7f6e\u4e3a null\uff09\u3002<\/p>\n<\/blockquote>\n<h3>\u521b\u5efa\u4e00\u4e2aReactPackage\u7684\u5b50\u7c7b\uff0c\u628a\u8fd9\u4e2a\u89c6\u56fe\u7ba1\u7406\u7c7b\u6ce8\u518c\u5230\u5e94\u7528\u7a0b\u5e8f\u5305\u7684createViewManagers\u91cc<\/h3>\n<pre><code class=\"language-java\">public class MyReactPackage implements ReactPackage {\n\n    @Override\n    public List&lt;NativeModule&gt; createNativeModules(ReactApplicationContext reactContext) {\n        return Collections.emptyList();\n    }\n\n    @Override\n    public List&lt;Class&lt;? extends JavaScriptModule&gt;&gt; createJSModules() {\n        return Collections.emptyList();\n    }\n\n    @Override\n    public List&lt;ViewManager&gt; createViewManagers(ReactApplicationContext reactContext) {\n        return Arrays.&lt;ViewManager&gt;asList(\n            new KenBurnsViewManager()\n        );\n    }\n}<\/code><\/pre>\n<h3>\u5728MainAppcation \u4e2d\u7684 getPackages \u65b9\u6cd5\u4e2d\u6dfb\u52a0 ReactPackage \u7684\u5b50\u7c7b\u5bf9\u8c61<\/h3>\n<pre><code class=\"language-java\">@Override\nprotected List&lt;ReactPackage&gt; getPackages() {\n    return Arrays.&lt;ReactPackage&gt;asList(\n        new MainReactPackage(), new MyReactPackage()\n    );\n}<\/code><\/pre>\n<h3>\u5b9e\u73b0 React Native \u7aef\u7684 JavaScript \u6a21\u5757<\/h3>\n<h4>\u7ec4\u4ef6\u63a5\u53e3<\/h4>\n<pre><code class=\"language-javascript\">import React, { Component,PropTypes } from &#039;react&#039;;\nimport {\n  requireNativeComponent,\n  View\n} from &#039;react-native&#039;;\n\nlet iface={\n    name:&#039;KenBurnsView&#039;,\n    propTypes:{\n        imgSource:PropTypes.string,\n        \/\/imgSource:PropTypes.string.isRequired,\n        ...View.propTypes\n    },\n};\n\nmodule.exports = requireNativeComponent(&#039;KenBurnsView&#039;, iface);<\/code><\/pre>\n<p><code>requireNativeComponent<\/code>\u901a\u5e38\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u539f\u751f\u89c6\u56fe\u7684\u540d\u5b57(JAVA\u5c42<code>KenBurnsViewManager$getName<\/code>\u7684\u503c)\uff0c\u800c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4e00\u4e2a\u63cf\u8ff0\u7ec4\u4ef6\u63a5\u53e3\u7684\u5bf9\u8c61\u3002\u7ec4\u4ef6\u63a5\u53e3\u5e94\u5f53\u58f0\u660e\u4e00\u4e2a\u53cb\u597d\u7684 name\uff0c\u7528\u4e8e\u5728\u8c03\u8bd5\u4fe1\u606f\u4e2d\u663e\u793a\uff1b\u7ec4\u4ef6\u63a5\u53e3\u8fd8\u5fc5\u987b\u58f0\u660e propTypes \u5b57\u6bb5\uff0c\u7528\u6765\u5bf9\u5e94\u5230\u539f\u751f\u89c6\u56fe\u4e0a\u3002\u8fd9\u4e2a<code>propTypes<\/code>\u8fd8\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u7528\u6237\u4f7f\u7528 View \u7684\u65b9\u5f0f\u662f\u5426\u6b63\u786e\uff0c<code>View.propTypes<\/code>\u8868\u793a\u5305\u542bView\u7684\u6240\u6709\u5c5e\u6027\u3002\u6700\u540e\u901a\u8fc7<code>module.exports<\/code>\u5bfc\u51fa\u63d0\u4f9b\u7ed9\u5176\u4ed6\u7ec4\u4ef6\u4f7f\u7528\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u8fd8\u9700\u8981\u4e00\u4e2a JavaScript \u7ec4\u4ef6\u6765\u505a\u4e00\u4e9b\u9664\u4e86\u6307\u5b9a<code>name<\/code>\u548c<code>propTypes<\/code>\u4ee5\u5916\u7684\u4e8b\u60c5\uff0c\u8b6c\u5982\u4e8b\u4ef6\u5904\u7406\uff0c\u53ef\u4ee5\u628a\u539f\u751f\u7ec4\u4ef6\u4f7f\u7528\u4e00\u4e2a\u666e\u901a\u7684 React \u7ec4\u4ef6\u5c01\u88c5\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0crequireNativeComponent \u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u53d8\u4e3a\u7528\u4e8e\u5c01\u88c5\u7684\u7ec4\u4ef6\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u548c\u539f\u751f\u6a21\u5757\u4e0d\u540c\uff0c\u539f\u751f\u89c6\u56fe\u7684\u524d\u7f00RCT\u4e0d\u4f1a\u88ab\u81ea\u52a8\u53bb\u6389\u3002<\/p>\n<\/blockquote>\n<h4>\u7ec4\u4ef6\u8c03\u7528<\/h4>\n<pre><code class=\"language-javascript\">import KenBurnsView from &#039;.\/KenBurnsView.js&#039;;\n\n&lt;KenBurnsView\n    imgSource=&#039;shanghai.jpg&#039;\n    style={{width:200, height:300}}\n\/&gt;<\/code><\/pre>\n<h2>\u6e90\u7801<\/h2>\n<p>KenBurnsViewManager.java<\/p>\n<pre><code class=\"language-java\">public class KenBurnsViewManager extends SimpleViewManager&lt;KenBurnsView&gt; {\n    private ThemedReactContext context;\n\n    @Override\n    public String getName() {\n        return &quot;KenBurnsView&quot;;\n    }\n\n    @Override\n    protected KenBurnsView createViewInstance(ThemedReactContext reactContext) {\n        context = reactContext;\n        KenBurnsView kenBurnsView = new KenBurnsView(context);\n        try {\n            InputStream inputStream = context.getAssets().open(&quot;shanghai.jpg&quot;);\n            Drawable drawable = Drawable.createFromStream(inputStream, null);\n            kenBurnsView.setImageDrawable(drawable);\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n        return kenBurnsView;\n    }\n\n    \/\/\u66b4\u9732\u5c5e\u6027\n    @ReactProp(name = &quot;imgSource&quot;)\n    public void setSource(KenBurnsView view, String source){\n        try {\n            InputStream inputStream = context.getAssets().open(source);\n            Drawable drawable = Drawable.createFromStream(inputStream, null);\n            view.setImageDrawable(drawable);\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n    }\n}<\/code><\/pre>\n<p>MyReactPackage.java<\/p>\n<pre><code class=\"language-java\">public class MyReactPackage implements ReactPackage {\n\n    @Override\n    public List&lt;NativeModule&gt; createNativeModules(ReactApplicationContext reactContext) {\n        return Collections.emptyList();\n    }\n\n    @Override\n    public List&lt;Class&lt;? extends JavaScriptModule&gt;&gt; createJSModules() {\n        return Collections.emptyList();\n    }\n\n    @Override\n    public List&lt;ViewManager&gt; createViewManagers(ReactApplicationContext reactContext) {\n        return Arrays.&lt;ViewManager&gt;asList(\n            new KenBurnsViewManager()\n        );\n    }\n}<\/code><\/pre>\n<p>MainApplication.java<\/p>\n<pre><code class=\"language-java\">@Override\nprotected List&lt;ReactPackage&gt; getPackages() {\n    return Arrays.&lt;ReactPackage&gt;asList(\n        new MainReactPackage(), new MyReactPackage()\n    );\n}<\/code><\/pre>\n<p>KenBurnsView.js<\/p>\n<pre><code class=\"language-javascript\">import React, { Component,PropTypes } from &#039;react&#039;;\nimport {\n  requireNativeComponent,\n  View\n} from &#039;react-native&#039;;\n\nlet iface={\n    name:&#039;KenBurnsView&#039;,\n    propTypes:{\n        imgSource:PropTypes.string,\n        ...View.propTypes\n    },\n};\n\nmodule.exports = requireNativeComponent(&#039;KenBurnsView&#039;, iface);<\/code><\/pre>\n<p>index.android.js<\/p>\n<pre><code class=\"language-javascript\">\/**\n * Sample React Native App\n * https:\/\/github.com\/facebook\/react-native\n * @flow\n *\/\n\nimport React, { Component } from &#039;react&#039;;\nimport {\n    AppRegistry,\n    StyleSheet,\n    Text,\n    View\n} from &#039;react-native&#039;;\n\nimport KenBurnsView from &#039;.\/KenBurnsView.js&#039;;\n\nclass RNAPP extends Component {\n    render() {\n        return (\n            &lt;View style={styles.container}&gt;\n                &lt;Text style={styles.welcome}&gt;\n                    Welcome to React Native!\n                &lt;\/Text&gt;\n                &lt;Text style={styles.welcome}&gt;\n                    React Native\u6df7\u5408\u539f\u751f\u5f00\u53d1\n                &lt;\/Text&gt;\n                &lt;Text style={styles.instructions}&gt;\n                    Powered by rnapp.cc\n                &lt;\/Text&gt;\n                &lt;KenBurnsView\n                    imgSource=&#039;shanghai.jpg&#039;\n                    style={{width:200, height:300}}\n                    \/&gt;\n            &lt;\/View&gt;\n        );\n    }\n}\n\nconst styles = StyleSheet.create({\n    container: {\n        flex: 1,\n        justifyContent: &#039;center&#039;,\n        alignItems: &#039;center&#039;,\n        backgroundColor: &#039;#F5FCFF&#039;,\n    },\n    welcome: {\n        fontSize: 20,\n        textAlign: &#039;center&#039;,\n        margin: 10,\n    },\n    instructions: {\n        textAlign: &#039;center&#039;,\n        color: &#039;#333333&#039;,\n        marginBottom: 5,\n    },\n    btn: {\n        marginTop: 20,\n        marginLeft: 10,\n        marginRight: 10,\n        width: 260,\n        height: 35,\n        backgroundColor: &#039;#3BC1FF&#039;,\n        color: &#039;#fff&#039;,\n        lineHeight: 24,\n        fontWeight: &#039;bold&#039;,\n        textAlign: &#039;center&#039;,\n        textAlignVertical:&#039;center&#039;\n    },\n});\n\nAppRegistry.registerComponent(&#039;RNAPP&#039;, () =&gt; RNAPP);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>React Native\u5df2\u7ecf\u5c01\u88c5\u4e86\u5927\u90e8\u5206\u6700\u5e38\u89c1\u7684\u7ec4\u4ef6\uff0c\u8b6c\u5982ScrollView\u548cTextInput\uff0c\u4f46\u4e0d\u53ef\u80fd\u5c01 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[163],"tags":[],"class_list":["post-518","post","type-post","status-publish","format-standard","hentry","category-react-native"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=518"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/518\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}