{"id":245,"date":"2023-02-28T22:47:10","date_gmt":"2023-02-28T14:47:10","guid":{"rendered":"https:\/\/www.jinhaihan.top\/WordPress\/?p=245"},"modified":"2023-02-28T22:47:15","modified_gmt":"2023-02-28T14:47:15","slug":"jetpack-compose%e5%ba%95%e9%83%a8%e7%8a%b6%e6%80%81%e6%a0%8ffab%e5%88%b6%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.jinhaihan.top\/WordPress\/jetpack-compose%e5%ba%95%e9%83%a8%e7%8a%b6%e6%80%81%e6%a0%8ffab%e5%88%b6%e4%bd%9c\/","title":{"rendered":"<strong>Jetpack Compose\u5e95\u90e8\u72b6\u6001\u680f+Fab\u5236\u4f5c<\/strong>"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"244\" src=\"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/Screenshot-2023-02-28-at-10.32.53-PM.png?resize=696%2C244&#038;ssl=1\" alt=\"\" class=\"wp-image-246\" data-recalc-dims=\"1\"\/><\/figure>\n\n\n\n<div class=\"wp-block-jetpack-markdown\"><p>\u6548\u679c\u56fe\u5982\u4e0a\uff1a<\/p>\n<p>\u63a7\u4ef6\u9ed8\u8ba4\u652f\u6301\u4e00\u4e9b\u5c5e\u6027\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u76f4\u63a5\u4e0a\u4ee3\u7801\uff0c\u5728\u4ee3\u7801\u4e2d\u52a0\u6ce8\u91ca\u89e3\u91ca\uff1a<\/p>\n<p><strong>\u6ce8\u610f\uff1a\u9700\u8981\u5bfc\u5165<code>androidx.compose.material<\/code>\u5305\uff0c\u5982\u679c\u5bfc\u5165material3\u7684\u5305\u4f1a\u5bfc\u81f4\u989c\u8272\u8bbe\u7f6e\u3001\u67d0\u4e9b\u8bbe\u7f6e\u9879\u5f02\u5e38<\/strong><\/p>\n<pre><code class=\"language-kotlin\">@Composable  \nfun Greeting2() {  \n\t\/\/ \u521b\u5efa\u5bfc\u822a\n    val navController = rememberNavController()  \n    val scaffoldState = rememberScaffoldState()  \n    Scaffold(  \n\t    \/\/ \u521b\u5efa\u5e95\u90e8\u5bfc\u822a\u680f\uff0c\u548cNavHost\u7ed3\u5408\u5bfc\u822a\u3002\u4f20\u5165navController\u8fdb\u884c\u70b9\u51fb\u63a7\u5236\u3002\n        bottomBar = { MyBottomBar(navController) },  \n        \/\/ \u65b0\u5efa\u4e00\u4e2a\u60ac\u6d6eFab\uff0c\u7528\u4e8e\u5d4c\u5165\n        floatingActionButton = {  \n            FloatingActionButton(  \n                modifier = Modifier.size(156.dp),  \n                onClick = {  \n                \/\/ FAB onClick  \n            },  \n                shape = CircleShape) {  \n                Icon(imageVector = Icons.Default.Add, contentDescription = &quot;Add&quot;, modifier = Modifier.size(100.dp))  \n            }  \n        },  \n  \n        scaffoldState = scaffoldState,  \n        \/\/ Fab\u662f\u5426\u5d4c\u5165\u5e95\u90e8\u680f\n        isFloatingActionButtonDocked = true,  \n        \/\/ Fab\u5d4c\u5165\u5e95\u90e8\u680f\u7684\u4f4d\u7f6e\n        floatingActionButtonPosition = FabPosition.Center  \n        \n    ) { innerPadding -&gt;  \n\t    \/\/ \u5bfc\u822a\uff0c\u4e00\u5171\u6709\u56db\u4e2a\u9875\u9762\uff0c\u6bcf\u4e2a\u9875\u9762\u90fd\u662f\u4e00\u4e2aComposable\n        NavHost(navController, startDestination = MainActivityPages.Profile.route, Modifier.padding(innerPadding)) {  \n            composable(MainActivityPages.Profile.route) { Text(text = &quot;aaa&quot;) }  \n            composable(MainActivityPages.Info.route) { Text(text = &quot;bbb&quot;) }  \n            composable(MainActivityPages.Message.route) { Text(text = &quot;bbb&quot;) }  \n            composable(MainActivityPages.My.route) { Text(text = &quot;bbb&quot;) }  \n        }    }}  \n  \n@Composable  \nfun MyBottomBar(navController: NavHostController) {  \n\t\/\/ \u51c6\u5907\u5bfc\u822a\u6309\u94ae\n    val bottomMenuItemsList = prepareBottomMenu()  \n\t\/\/ \u8bbe\u5b9a\u5bfc\u822a\u7684\u6837\u5f0f\u3001\u5d4c\u5165\u7684\u5f62\u72b6\u7b49\n    BottomAppBar(backgroundColor = Color.White,  \n        cutoutShape = CircleShape,  \n        modifier = Modifier.height(180.dp)  \n    ) {  \n\t    \/\/ \u83b7\u53d6\u5f53\u524d\u5bfc\u822a\u7684\u5185\u5bb9\n        val navBackStackEntry by navController.currentBackStackEntryAsState()  \n        val currentDestination = navBackStackEntry?.destination  \n        bottomMenuItemsList.forEachIndexed { index, menuItem -&gt;\n\t        \/\/ \u4e00\u5171\u6709\u56db\u4e2a\u6309\u94ae\uff0cFab\u5c45\u4e2d\uff0c\u6240\u4ee5\u8981\u5728\u4e2d\u95f4\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684\u6309\u94ae\u5360\u4f4d  \n            if (index == 2) {  \n                \/\/ add an empty space for FAB  \n                BottomNavigationItem(  \n                    modifier = Modifier.size(156.dp),  \n                    selected = false,  \n                    onClick = {},  \n                    icon = {},  \n                    enabled = false  \n                )  \n            }  \n\t\t\t\/\/ \u5176\u4f59\u6309\u94ae\u6b63\u5e38\u5904\u7406\n            BottomNavigationItem(  \n\t            \/\/ \u9009\u62e9\u7684\u989c\u8272\n                selectedContentColor = Color.Red,  \n                \/\/ \u672a\u9009\u62e9\u7684\u989c\u8272\n                unselectedContentColor = Color.Gray,  \n                \/\/ \u662f\u5426\u4e00\u76f4\u663e\u793a\u6807\u9898\uff0cfalse\u4e3a\u9009\u4e2d\u624d\u663e\u793a\u6807\u9898\n                alwaysShowLabel = false,  \n                modifier = Modifier.size(100.dp),  \n                onClick = {  \n\t                \/\/ \u70b9\u51fb\u4e8b\u4ef6\uff0c\u5229\u7528\u5bfc\u822a\n                    navController.navigate(menuItem.route) {  \n                        \/\/ Pop up to the start destination of the graph to  \n                        \/\/ avoid building up a large stack of destinations                        \/\/ on the back stack as users select items                        popUpTo(navController.graph.findStartDestination().id) {  \n                            saveState = true  \n                        }  \n                        \/\/ Avoid multiple copies of the same destination when  \n                        \/\/ reselecting the same item                        launchSingleTop = true  \n                        \/\/ Restore state when reselecting a previously selected item  \n                        restoreState = true  \n                    }  \n                },  \n                label = { Text(menuItem.label, fontSize = 35.sp) },  \n                icon = {  \n                    Icon(  \n                        imageVector = menuItem.icon,  \n                        contentDescription = menuItem.label,  \n                        modifier = Modifier.size(100.dp),  \n                    )  \n                },  \n                \/\/ \u5229\u7528\u5bfc\u822a\u5224\u65ad\u5f53\u524d\u6309\u94ae\u662f\u5426\u9009\u62e9\n                selected = currentDestination?.hierarchy?.any { it.route == menuItem.route } == true,\/\/(selectedItem == menuItem.route),  \n                enabled = true  \n            )  \n        }  \n    }}  \n  \nprivate fun prepareBottomMenu(): List&lt;MainActivityPages&gt; {  \n    val bottomMenuItemsList = arrayListOf&lt;MainActivityPages&gt;()  \n  \n    \/\/ add menu items  \n    bottomMenuItemsList.add(MainActivityPages.Profile)  \n    bottomMenuItemsList.add(MainActivityPages.Info)  \n    bottomMenuItemsList.add(MainActivityPages.Message)  \n    bottomMenuItemsList.add(MainActivityPages.My)  \n  \n    return bottomMenuItemsList  \n}  \n  \ndata class BottomMenuItem(val label: String, val icon: ImageVector, val route: String)  \n  \n@Preview(showBackground = true)  \n@Composable  \nfun GreetingPreview2() {  \n    HomeOfCarTheme {  \n        Greeting2()  \n    }  \n}\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":247,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[7,8],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/49830289321_83c90a1dd4_b.jpg?fit=1024%2C683&ssl=1","jetpack-related-posts":[{"id":235,"url":"https:\/\/www.jinhaihan.top\/WordPress\/%e5%9c%a8gin%e6%a1%86%e6%9e%b6%e4%b8%ad%e8%8e%b7%e5%8f%96%e5%a4%96%e9%83%a8%e8%af%b7%e6%b1%82%e4%b8%adget%e5%92%8cpost%e7%9a%84%e5%8f%82%e6%95%b0\/","url_meta":{"origin":245,"position":0},"title":"\u5728Gin\u6846\u67b6\u4e2d\u83b7\u53d6\u5916\u90e8\u8bf7\u6c42\u4e2dGet\u548cPost\u7684\u53c2\u6570","author":"Kim","date":"2023\u5e741\u670831\u65e5","format":false,"excerpt":"\u9996\u5148\u5047\u8bbe\u5df2\u7ecf\u642d\u5efa\u597d\u6574\u4e2a\u670d\u52a1\uff0c\u5e76\u521b\u5efa\u4e86\u51e0\u4e2aAPI\u7528\u4e8e\u6d4b\u8bd5\u3002 \u5728Get\u8bf7\u6c42\u4e2d\uff0c\u5047\u8bbe\u7531\u4ee5\u4e0b\u51fd\u6570\u5904\u7406\uff0c\u5219\u83b7\u53d6\u2026","rel":"","context":"\u5728\u201cGolang\u201d\u4e2d","block_context":{"text":"Golang","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/golang\/"},"img":{"alt_text":"Dynamic Earth - Ocean Currents","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/01\/7402441936_5c99447ca0_b.jpg?fit=1024%2C576&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/01\/7402441936_5c99447ca0_b.jpg?fit=1024%2C576&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/01\/7402441936_5c99447ca0_b.jpg?fit=1024%2C576&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":241,"url":"https:\/\/www.jinhaihan.top\/WordPress\/%e5%9f%ba%e4%ba%8ekotlin%e5%92%8c%e6%90%ba%e7%a8%8b%e7%9a%84%e4%b8%80%e7%a7%8dretrofit%e5%b0%81%e8%a3%85\/","url_meta":{"origin":245,"position":1},"title":"\u57fa\u4e8eKotlin\u548c\u643a\u7a0b\u7684\u4e00\u79cdRetrofit\u5c01\u88c5","author":"Kim","date":"2023\u5e742\u670819\u65e5","format":false,"excerpt":"\u4e00\u3001\u5c01\u88c5\u6b65\u9aa4 \u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a \u9996\u5148\u5f15\u5165\u76f8\u5173\u4f9d\u8d56\uff1a api 'com.squareup.ret\u2026","rel":"","context":"\u5728\u201cAndroid\u201d\u4e2d","block_context":{"text":"Android","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/android\/"},"img":{"alt_text":"Free network image","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvcHgxMDg5NTEyLWltYWdlLWt3dnkzcXdyLmpwZw.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvcHgxMDg5NTEyLWltYWdlLWt3dnkzcXdyLmpwZw.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvcHgxMDg5NTEyLWltYWdlLWt3dnkzcXdyLmpwZw.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2023\/02\/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvcHgxMDg5NTEyLWltYWdlLWt3dnkzcXdyLmpwZw.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":221,"url":"https:\/\/www.jinhaihan.top\/WordPress\/java%e6%8f%90%e5%8f%96list%e5%af%b9%e8%b1%a1%e6%9f%90%e4%b8%80%e4%b8%aa%e5%b1%9e%e6%80%a7%e4%b8%ba%e6%96%b0list\/","url_meta":{"origin":245,"position":2},"title":"JAVA\u63d0\u53d6List\u5bf9\u8c61\u67d0\u4e00\u4e2a\u5c5e\u6027\u4e3a\u65b0List","author":"Kim","date":"2022\u5e7411\u670818\u65e5","format":false,"excerpt":"\u4f7f\u7528\u6d41\u5c06\u67d0\u5c5e\u6027\u8f6c\u6210map\u518d\u5bfc\u51fa exportDTOList.stream().map(exportD\u2026","rel":"","context":"\u5728\u201cJava\u201d\u4e2d","block_context":{"text":"Java","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/java\/"},"img":{"alt_text":"white clouds","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/11\/pexels-photo-2114014.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/11\/pexels-photo-2114014.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/11\/pexels-photo-2114014.jpeg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/11\/pexels-photo-2114014.jpeg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":197,"url":"https:\/\/www.jinhaihan.top\/WordPress\/197\/","url_meta":{"origin":245,"position":3},"title":"gradle\u7684java\u9879\u76eeLombok\u62a5\u9519\u7684\u89e3\u51b3\u65b9\u5f0f","author":"Kim","date":"2022\u5e747\u670830\u65e5","format":false,"excerpt":"\u4e00. \u68c0\u67e5\u9879\u76ee\u914d\u7f6e \u5982\u5176\u4ed6\u535a\u5ba2\u6240\u8bf4\uff0c\u4f18\u5148\u68c0\u67e5\u9879\u76ee\u914d\u7f6e 1. \u68c0\u67e5\u9879\u76ee\u4f9d\u8d56\u662f\u5426\u6b63\u5e38\uff0c\u5305\u62ec\u6ce8\u89e3\u5904\u7406\u5668 \u5728\u2026","rel":"","context":"\u5728\u201cJava\u201d\u4e2d","block_context":{"text":"Java","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/java\/"},"img":{"alt_text":"grey white clouds","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/clouds-cloudporn-weather-lookup-158163.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/clouds-cloudporn-weather-lookup-158163.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/clouds-cloudporn-weather-lookup-158163.jpeg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/clouds-cloudporn-weather-lookup-158163.jpeg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":192,"url":"https:\/\/www.jinhaihan.top\/WordPress\/ue5-ik-retarget-%e9%87%8d%e5%ae%9a%e5%90%91%e5%8a%a8%e7%94%bb%e6%b2%a1%e6%9c%89rootmotion%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95\/","url_meta":{"origin":245,"position":4},"title":"UE5 IK Retarget \u91cd\u5b9a\u5411\u52a8\u753b\u6ca1\u6709RootMotion\u7684\u89e3\u51b3\u65b9\u6cd5","author":"Kim","date":"2022\u5e747\u67088\u65e5","format":false,"excerpt":"\u5c0f\u7ec6\u8282\uff0c\u5728IK Retarget\u7684\u8282\u70b9Chain Mapping\u91cc\u9762\u53ef\u4ee5\u8bbe\u7f6e\u6bcf\u4e2a\u8282\u70b9\u7684\u91cd\u5b9a\u5411\u65b9\u5f0f\uff0c\u70b9\u2026","rel":"","context":"\u5728\u201c\u535a\u5ba2\u201d\u4e2d","block_context":{"text":"\u535a\u5ba2","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/"},"img":{"alt_text":"landscape photograph of body of water","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/pexels-photo-1001682.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/pexels-photo-1001682.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/pexels-photo-1001682.jpeg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/07\/pexels-photo-1001682.jpeg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":205,"url":"https:\/\/www.jinhaihan.top\/WordPress\/wpf%e4%b8%ad%e7%9a%84%e5%a4%9a%e8%af%ad%e8%a8%80%e6%94%af%e6%8c%81_%e5%8a%a8%e6%80%81%e5%88%87%e6%8d%a2%e8%af%ad%e8%a8%80\/","url_meta":{"origin":245,"position":5},"title":"wpf\u4e2d\u7684\u591a\u8bed\u8a00\u652f\u6301_\u52a8\u6001\u5207\u6362\u8bed\u8a00","author":"Kim","date":"2022\u5e748\u670831\u65e5","format":false,"excerpt":"\u4e3b\u6d41\u65b9\u6cd5\u53c2\u8003\u535a\u5ba2\uff1a(\u867d\u7136\u8001\u4e86\u70b9\u4f46\u662f\u6709\u7528) WPF\u5e94\u7528\u7a0b\u5e8f\u652f\u6301\u591a\u56fd\u8bed\u8a00\u89e3\u51b3\u65b9\u6848 \u4f46\u662f\u9ed8\u8ba4\u7684\u65b9\u6848\u91cc\u8bd5\u7528\u9759\u2026","rel":"","context":"\u5728\u201cWPF\u201d\u4e2d","block_context":{"text":"WPF","link":"https:\/\/www.jinhaihan.top\/WordPress\/category\/bolg\/wpf\/"},"img":{"alt_text":"pieces of paper with words","src":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/08\/pexels-photo-6045344.jpeg?fit=1200%2C795&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/08\/pexels-photo-6045344.jpeg?fit=1200%2C795&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/08\/pexels-photo-6045344.jpeg?fit=1200%2C795&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2022\/08\/pexels-photo-6045344.jpeg?fit=1200%2C795&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/245"}],"collection":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":1,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/245\/revisions\/248"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/media\/247"}],"wp:attachment":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}