{"id":746,"date":"2018-02-25T20:33:22","date_gmt":"2018-02-25T12:33:22","guid":{"rendered":"http:\/\/60.205.208.74\/2018\/02\/25\/ionic-%e5%af%bc%e8%88%aa\/"},"modified":"2018-02-25T20:33:22","modified_gmt":"2018-02-25T12:33:22","slug":"ionic-%e5%af%bc%e8%88%aa","status":"publish","type":"post","link":"https:\/\/www.puzi7.net\/?p=746","title":{"rendered":"ionic \u5bfc\u822a"},"content":{"rendered":"<span itemprop=\"description\"><div class=\"article-body\">\n<div class=\"article-intro\" id=\"content\">\n<h1>ionic \u5bfc\u822a<\/h1>\n<hr>\n<h2>ion-nav-view<\/h2>\n<p>\n\u5f53\u7528\u6237\u5728\u4f60\u7684app\u4e2d\u6d4f\u89c8\u65f6\uff0cionic\u80fd\u591f\u68c0\u6d4b\u5230\u6d4f\u89c8\u5386\u53f2\u3002\u901a\u8fc7\u68c0\u6d4b\u6d4f\u89c8\u5386\u53f2\uff0c\u5b9e\u73b0\u5411\u5de6\u6216\u5411\u53f3\u6ed1\u52a8\u65f6\u53ef\u4ee5\u6b63\u786e\u8f6c\u6362\u89c6\u56fe\u3002\n<\/p>\n<p>\u91c7\u7528AngularUI\u8def\u7531\u5668\u6a21\u5757\u7b49\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u53ef\u4ee5\u5206\u4e3a\u4e0d\u540c\u7684$state(\u72b6\u6001)\u3002Angular\u7684\u6838\u5fc3\u4e3a\u8def\u7531\u670d\u52a1\uff0cURLs\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u89c6\u56fe\u3002<\/p>\n<p>AngularUI\u8def\u7531\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u5f3a\u5927\u7684\u72b6\u6001\u7ba1\u7406\uff0c\u5373\u72b6\u6001\u53ef\u4ee5\u88ab\u547d\u540d\uff0c\u5d4c\u5957\uff0c \u4ee5\u53ca\u5408\u5e76\u89c6\u56fe\uff0c\u5141\u8bb8\u4e00\u4e2a\u4ee5\u4e0a\u6a21\u677f\u5448\u73b0\u5728\u540c\u4e00\u4e2a\u9875\u9762\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u6bcf\u4e2a\u72b6\u6001\u65e0\u9700\u7ed1\u5b9a\u5230\u4e00\u4e2aURL\uff0c\u5e76\u4e14\u6570\u636e\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u63a8\u9001\u5230\u6bcf\u4e2a\u72b6\u6001\u3002<\/p>\n<p>\u4ee5\u4e0b\u5b9e\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5305\u542b\u4e0d\u540c\u72b6\u6001\u7684\u5bfc\u822a\u89c6\u56fe\u3002<\/p>\n<p>\u6211\u4eec\u7684\u6807\u8bb0\u4e2d\u9009\u62e9ionNavView\u4f5c\u4e3a\u9876\u5c42\u6307\u4ee4\u3002\u663e\u793a\u4e00\u4e2a\u9875\u7709\u680f\u6211\u4eec\u7528 ionNavBar \u6307\u4ee4\u901a\u8fc7\u5bfc\u822a\u66f4\u65b0\u3002\n<\/p>\n<p>\n\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u6211\u4eec\u7684\u5c06\u6e32\u67d3\u7684\u72b6\u6001\u503c\u3002<\/p>\n<pre>\nvar app = angular.module('myApp', ['ionic']);\napp.config(function($stateProvider) {\n  $stateProvider\n  .state('index', {\n    url: '\/',\n    templateUrl: 'home.html'\n  })\n  .state('music', {\n    url: '\/music',\n    templateUrl: 'music.html'\n  });\n});\n<\/pre>\n<p>\u518d\u6253\u5f00\u5e94\u7528\uff0c$stateProvider \u4f1a\u67e5\u8be2url, \u770b\u662f\u5426\u5339\u914d index \u72b6\u6001\u503c, \u518d\u52a0\u8f7dindex.html\u5230&lt;ion-nav-view&gt;\u3002<\/p>\n<p>\u9875\u9762\u52a0\u8f7d\u90fd\u662f\u901a\u8fc7URLs\u914d\u7f6e\u7684\u3002\u5728Angular\u4e2d\u521b\u5efa\u6a21\u677f\u6700\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u5f0f\u5c31\u662f\u76f4\u63a5\u5c06\u4ed6\u653e\u5230html\u6a21\u677f\u6587\u4ef6\u4e2d\u5e76\u4e14\u7528&lt;script type=&#8221;text\/ng-template&#8221;&gt; \u5305\u542b\u3002 <\/p>\n<p>\u6240\u4ee5\u8fd9\u4e5f\u662f\u4e00\u79cd\u65b9\u5f0f\u5c06Home.html\u52a0\u5165\u5230\u6211\u4eec\u7684APP\u4e2d\u6765\uff1a<\/p>\n<pre>\n&lt;script id=\"home\" type=\"text\/ng-template\"&gt;\n  &lt;!--  ion-view \u6807\u9898\u5c06\u663e\u793a\u5728 navbar \u4e2d --&gt;\n  &lt;ion-view view-title=\"Home\"&gt;\n    &lt;ion-content ng-controller=\"HomeCtrl\"&gt;\n      &lt;!-- The content of the page --&gt;\n      &lt;a href=\"#\/music\"&gt;Go to music page!&lt;\/a&gt;\n    &lt;\/ion-content&gt;\n  &lt;\/ion-view&gt;\n&lt;\/script&gt;\n<\/pre>\n<p><a href=\"\/try\/tryit.php?filename=ionic_ion-nav-view&#038;basepath=0\" target=\"_blank\" class=\"tryitbtn\">\u5c1d\u8bd5\u4e00\u4e0b \u00bb<\/a><\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u6a21\u677f\u4f1a\u5f88\u5feb\u7684\u52a0\u8f7d\u5e76\u88ab\u7f13\u5b58\u5c31\u4e0d\u540c\u901a\u8fc7\u7f51\u7edc\u518d\u53bb\u52a0\u8f7d\u3002<\/p>\n<hr>\n<h3>\u7f13\u5b58<\/h3>\n<p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u89c6\u56fe\u90fd\u88ab\u7f13\u5b58\u4e86\u80fd\u63d0\u5347\u6027\u80fd\u3002\u5f53\u8df3\u51fa\u89c6\u56fe\u65f6\uff0c\u4ed6\u7684\u5143\u7d20\u88ab\u4fdd\u7559\u5728Dom\u4e2d\uff0c\u5e76\u4e14\u5b83\u7684\u4f5c\u7528\u57df\u4e5f\u4ece $watch \u4e2d\u79fb\u9664\u3002<\/p>\n<p>\u5f53\u6211\u4eec\u8df3\u5230\u4e00\u4e2a\u5df2\u7ecf\u88ab\u7f13\u5b58\u4e86\u7684\u89c6\u56fe\uff0c\u89c6\u56fe\u4f1a\u88ab\u6fc0\u6d3b\uff0c\u5b83\u7684\u4f5c\u7528\u57df\u88ab\u91cd\u65b0\u8fde\u63a5\u4e0a\uff0cDom\u4e2d\u4e5f\u4fdd\u5b58\u4e86\u4ed6\u7684\u5143\u7d20\u3002\u8fd9\u4e5f\u5141\u8bb8\u4fdd\u6301\u4ee5\u524d\u7684\u89c6\u56fe\u6eda\u52a8\u4f4d\u7f6e\u3002\n<\/p>\n<p>\n\u7f13\u5b58\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5f88\u591a\u65b9\u5f0f\u6765\u5f00\u542f\u548c\u5173\u95ed\u7684\u3002\u9ed8\u8ba4Ionic\u5c06\u6700\u5927\u7f13\u5b58\u9875\u9762\u6570\u4e3a10\u4e2a\uff0c\u5e76\u4e14\u8fd9\u5e76\u4e0d\u662f\u552f\u4e00\u53ef\u4ee5\u5b9a\u5236\u7684\uff0c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u663e\u5f0f\u72b6\u6001\u6765\u8bbe\u7f6e\u89c6\u56fe\u5e94\u4e0d\u5e94\u8be5\u88ab\u7f13\u5b58\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u56e0\u4e3a\u6211\u4eec\u662f\u7f13\u5b58\u8fd9\u4e9b\u89c6\u56fe\uff0c\u6211\u4eec\u6ca1\u6709\u7834\u574f\u4f5c\u7528\u57df\u3002\u76f8\u53cd, \u5b83\u7684\u4f5c\u7528\u57df\u4e5f\u4ece $watch \u4e2d\u79fb\u9664\u3002 <\/p>\n<p>\u56e0\u4e3a\u63a5\u4e0b\u6765\u7684\u89c2\u770b\u4f5c\u7528\u57df\u5e76\u6ca1\u6709\u88ab\u6467\u6bc1\u548c\u91cd\u5efa\uff0c\u63a7\u5236\u5668\u4e5f\u6ca1\u88ab\u518d\u6b21\u52a0\u8f7d\u3002\u5982\u679capp\/controller\u9700\u8981\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u8fdb\u5165\u6216\u79bb\u5f00\u4e00\u4e2a\u89c6\u56fe\uff0c\u518d\u89c6\u56fe\u4e8b\u4ef6\u4ece ionView \u4f5c\u7528\u5185\u53d1\u51fa, \u4f8b\u5982 $ionicView.enter\uff0c \u53ef\u80fd\u662f\u6709\u7528\u7684\u3002<\/p>\n<h3>\u5168\u5c40\u7981\u7528\u7f13\u5b58<\/h3>\n<p> $ionicConfigProvider \u53ef\u4ee5\u7528\u4e8e\u8bbe\u7f6e\u6700\u5927\u5141\u8bb8\u7f13\u5b58\u7684\u89c6\u56fe\u6570\u91cf\uff0c\u901a\u8fc7\u8bbe\u7f6e\u4e3a0\u6765\u7981\u7528\u6240\u6709\u7f13\u5b58\u3002<\/p>\n<pre>\n$ionicConfigProvider.views.maxCache(0);\n<\/pre>\n<h3>\u5728STATE PROVIDER\u4e2d\u7981\u7528\u7f13\u5b58<\/h3>\n<pre>\n$stateProvider.state('myState', {\n   cache: false,\n   url : '\/myUrl',\n   templateUrl : 'my-template.html'\n})\n<\/pre>\n<h3>\u901a\u8fc7\u5c5e\u6027\u7981\u7528\u7f13\u5b58<\/h3>\n<pre>\n&lt;ion-view cache-view=\"false\" view-title=\"My Title!\"&gt;\n  ...\n&lt;\/ion-view&gt;\n<\/pre>\n<h3>AngularUI \u8def\u7531<\/h3>\n<p>\u8bf7\u8bbf\u95ee\u00a0<a style=\"color: #4f8ef7;\" href=\"https:\/\/github.com\/angular-ui\/ui-router\/wiki\">AngularUI Router&#8217;s docs<\/a>\u00a0\u4e86\u89e3\u66f4\u591a\u3002<\/p>\n<h3>API<\/h3>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        name<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u4e00\u4e2a\u89c6\u56fe\u7684\u540d\u5b57\u3002\u8fd9\u4e2a\u540d\u5b57\u5e94\u8be5\u662f\u5728\u76f8\u540c\u7684\u72b6\u6001\u4e0b\u5176\u4ed6\u89c6\u56fe\u4e2d\u552f\u4e00\u7684\u3002\u4f60\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u72b6\u6001\u4e2d\u6709\u76f8\u540c\u540d\u79f0\u7684\u89c6\u56fe\u3002\u6b32\u4e86\u89e3\u8be6\u7ec6\u4fe1\u606f\uff0c\u67e5\u770bui-router\u7684 <a href=\"http:\/\/angular-ui.github.io\/ui-router\/site\/#\/api\/ui.router.state.directive:ui-view\">ui-view \u6587\u6863<\/a>\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>ion-view<\/h2>\n<p>\u96b6\u5c5e\u4e8eionNavView\u3002<\/p>\n<p>\u4e00\u4e2a\u5185\u5bb9\u7684\u5bb9\u5668\uff0c\u7528\u4e8e\u5c55\u793a\u89c6\u56fe\u6216\u5bfc\u822a\u680f\u4fe1\u606f\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5e26\u6709&#8221;\u6211\u7684\u9875\u9762&#8221;\u6807\u9898\u7684\u5bfc\u822a\u680f\u8f7d\u5165\u9875\u9762\u7684\u4f8b\u5b50\u3002<\/p>\n<pre>\n&lt;ion-nav-bar&gt;&lt;\/ion-nav-bar&gt;\n&lt;ion-nav-view class=\"slide-left-right\"&gt;\n  &lt;ion-view title=\"\u6211\u7684\u9875\u9762\"&gt;\n    &lt;ion-content&gt;\n      \u4f60\u597d!\n    &lt;\/ion-content&gt;\n  &lt;\/ion-view&gt;\n&lt;\/ion-nav-view&gt;\n<\/pre>\n<h3>API<\/h3>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        title<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u663e\u793a\u5728\u7236<code>ionNavBar<\/code>\u7684\u6807\u9898\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n        hide-back-button<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5e03\u5c14\u503c<\/code>\n      <\/td>\n<td>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u662f\u5426\u5728\u7236<code>ionNavBar<\/code>\u9690\u85cf\u540e\u9000\u6309\u94ae\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n        hide-nav-bar<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5e03\u5c14\u503c<\/code>\n      <\/td>\n<td>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u662f\u5426\u9690\u85cf\u7236<code>ionNavBar<\/code>\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>ion-nav-bar <\/h2>\n<p>\u521b\u5efa\u4e00\u4e2a\u9876\u90e8\u5de5\u5177\u680f\uff0c\u5f53\u7a0b\u5e8f\u72b6\u6001\u6539\u53d8\u65f6\u66f4\u65b0\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;body ng-app=\"starter\"&gt;\n  &lt;!-- \u5f53\u6211\u4eec\u6d4f\u89c8\u65f6\uff0c\u5bfc\u822a\u680f\u4f1a\u968f\u4e4b\u66f4\u65b0\u3002 --&gt;\n  &lt;ion-nav-bar class=\"bar-positive nav-title-slide-ios7\"&gt;\n  &lt;\/ion-nav-bar&gt;\n\n  &lt;!-- \u521d\u59cb\u5316\u65f6\u6e32\u67d3\u89c6\u56fe\u6a21\u677f --&gt;\n  &lt;ion-nav-view&gt;&lt;\/ion-nav-view&gt;\n&lt;\/body&gt;\n<\/pre>\n<h3>API<\/h3>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        delegate-handle<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u8be5\u53e5\u67c4\u7528<code>$ionicNavBarDelegate<\/code>\u6807\u8bc6\u6b64\u5bfc\u822a\u680f\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n        align-title<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u5bfc\u822a\u680f\u6807\u9898\u5bf9\u9f50\u7684\u4f4d\u7f6e\u3002\u53ef\u7528\uff1a &#8216;left&#8217;, &#8216;right&#8217;, &#8216;center&#8217;\u3002 \u9ed8\u8ba4\u4e3a &#8216;center&#8217;\u3002<\/p>\n<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>ion-nav-buttons <\/h2>\n<p>\n\u96b6\u5c5e\u4e8eionNavView\n<\/p>\n<p>\n\u5728ionView\u5185\u7684ionNavBar\u4e0a\u7528ionNavButtons\u8bbe\u7f6e\u6309\u94ae\u3002\n<\/p>\n<p>\n\u4f60\u8bbe\u7f6e\u7684\u4efb\u4f55\u6309\u94ae\u90fd\u5c06\u88ab\u653e\u7f6e\u5728\u5bfc\u822a\u680f\u7684\u76f8\u5e94\u4f4d\u7f6e\uff0c\u5f53\u7528\u6237\u79bb\u5f00\u7236\u89c6\u56fe\u65f6\u4f1a\u88ab\u9500\u6bc1\u3002\n<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;ion-nav-bar&gt;\n&lt;\/ion-nav-bar&gt;\n&lt;ion-nav-view&gt;\n  &lt;ion-view&gt;\n    &lt;ion-nav-buttons side=\"left\"&gt;\n      &lt;button class=\"button\" ng-click=\"doSomething()\"&gt;\n        \u6211\u662f\u4e00\u4e2a\u5728\u5bfc\u822a\u680f\u5de6\u4fa7\u7684\u6309\u94ae\uff01\n      &lt;\/button&gt;\n    &lt;\/ion-nav-buttons&gt;\n    &lt;ion-content&gt;\n      \u8fd9\u91cc\u662f\u4e00\u4e9b\u5185\u5bb9\uff01\n    &lt;\/ion-content&gt;\n  &lt;\/ion-view&gt;\n&lt;\/ion-nav-view&gt;\n<\/pre>\n<h3>API<\/h3>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        side\n      <\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u5728\u7236<code>ionNavBar<\/code>\u4e2d\u6309\u94ae\u653e\u7f6e\u7684\u4f4d\u7f6e\u3002 \u53ef\u7528: &#8216;left&#8217; \u6216 &#8216;right&#8217;\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>ion-nav-back-button <\/h2>\n<p>\u5728\u4e00\u4e2aionNavBar\u4e2d\u521b\u5efa\u4e00\u4e2a\u6309\u94ae\u3002<\/p>\n<p>\u5f53\u7528\u6237\u5728\u5f53\u524d\u5bfc\u822a\u80fd\u591f\u540e\u9000\u65f6\uff0c\u5c06\u663e\u793a\u540e\u9000\u6309\u94ae\u3002\n<\/p>\n<h3>\n\u7528\u6cd5<\/h3>\n<p>\n\u9ed8\u8ba4\u6309\u94ae\u52a8\u4f5c:\n<\/p>\n<pre>\n&lt;ion-nav-bar&gt;\n  &lt;ion-nav-back-button class=\"button-clear\"&gt;\n    &lt;i class=\"ion-arrow-left-c\"&gt;&lt;\/i&gt; \u540e\u9000\n  &lt;\/ion-nav-back-button&gt;\n&lt;\/ion-nav-bar&gt;\n<\/pre>\n<p>\n\u81ea\u5b9a\u4e49\u70b9\u51fb\u52a8\u4f5c\uff0c\u7528 $ionicNavBarDelegate:\n<\/p>\n<pre>\n&lt;ion-nav-bar ng-controller=\"MyCtrl\"&gt;\n  &lt;ion-nav-back-button class=\"button-clear\"\n    ng-click=\"canGoBack &amp;&amp; goBack()\"&gt;\n    &lt;i class=\"ion-arrow-left-c\"&gt;&lt;\/i&gt; \u540e\u9000\n  &lt;\/ion-nav-back-button&gt;\n&lt;\/ion-nav-bar&gt;\n<\/pre>\n<pre>\nfunction MyCtrl($scope, $ionicNavBarDelegate) {\n  $scope.goBack = function() {\n    $ionicNavBarDelegate.back();\n  };\n}\n<\/pre>\n<p>\n\u5728\u540e\u9000\u6309\u94ae\u4e0a\u663e\u793a\u4e0a\u4e00\u4e2a\u6807\u9898\uff0c\u4e5f\u7528$ionicNavBarDelegate\u3002\n<\/p>\n<pre>\n&lt;ion-nav-bar ng-controller=\"MyCtrl\"&gt;\n  &lt;ion-nav-back-button class=\"button-icon\"&gt;\n    &lt;i class=\"icon ion-arrow-left-c\"&gt;&lt;\/i&gt;{{getPreviousTitle() || 'Back'}}\n  &lt;\/ion-nav-back-button&gt;\n&lt;\/ion-nav-bar&gt;\n<\/pre>\n<pre>\nfunction MyCtrl($scope, $ionicNavBarDelegate) {\n  $scope.getPreviousTitle = function() {\n    return $ionicNavBarDelegate.getPreviousTitle();\n  };\n}<\/pre>\n<hr>\n<h2>nav-clear<\/h2>\n<p>\nnav-clear\u4e00\u4e2a\u5f53\u70b9\u51fb\u89c6\u56fe\u4e0a\u7684\u5143\u7d20\u65f6\u7528\u5230\u7684\u5c5e\u6027\u6307\u4ee4\uff0c\u6bd4\u5982\u4e00\u4e2a &lt;a href&gt; \u6216\u8005\u4e00\u4e2a &lt;button ui-sref&gt;\u3002\n<\/p>\n<p>\n\u5f53\u70b9\u51fb\u65f6\uff0cnav-clear\u5c06\u4f1a\u5bfc\u81f4\u7ed9\u5b9a\u7684\u5143\u7d20\uff0c\u7981\u6b62\u4e0b\u4e00\u4e2a\u89c6\u56fe\u7684\u8f6c\u6362\u3002\u8fd9\u4e2a\u6307\u4ee4\u5f88\u6709\u7528\uff0c\u6bd4\u5982\uff0c\u4fa7\u680f\u83dc\u5355\u5185\u7684\u94fe\u63a5\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4fa7\u680f\u83dc\u5355\u5185\u6dfb\u52a0\u4e86nav-clear\u6307\u4ee4\u7684\u4e00\u4e2a\u94fe\u63a5\u3002\u70b9\u51fb\u8be5\u94fe\u63a5\u5c06\u7981\u7528\u89c6\u56fe\u95f4\u7684\u4efb\u4f55\u52a8\u753b\u3002<\/p>\n<pre>\n&lt;a nav-clear menu-close href=\"#\/home\" class=\"item\"&gt;\u9996\u9875&lt;\/a&gt;\n<\/pre>\n<hr>\n<h2>ion-nav-title <\/h2>\n<p>ion-nav-title \u7528\u4e8e\u8bbe\u7f6e ion-view \u6a21\u677f\u4e2d\u7684\u6807\u9898\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;ion-nav-bar&gt;\n&lt;\/ion-nav-bar&gt;\n&lt;ion-nav-view&gt;\n  &lt;ion-view&gt;\n    &lt;ion-nav-title&gt;\n      &lt;img src=\"logo.svg\"&gt;\n    &lt;\/ion-nav-title&gt;\n    &lt;ion-content&gt;\n      Some super content here!\n    &lt;\/ion-content&gt;\n  &lt;\/ion-view&gt;\n&lt;\/ion-nav-view&gt;\n<\/pre>\n<hr>\n<h2>nav-transition<\/h2>\n<p>\u8bbe\u7f6e\u4f7f\u7528\u7684\u8fc7\u6e21\u7c7b\u578b\uff0c\u53ef\u4ee5\u662f\uff1aios, android, \u548c none\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;a nav-transition=\"none\" href=\"#\/home\"&gt;Home&lt;\/a&gt;\n<\/pre>\n<hr>\n<h2>nav-direction<\/h2>\n<p>\u8bbe\u7f6e\u5bfc\u822a\u89c6\u56fe\u4e2d\u8fc7\u6e21\u52a8\u753b\u7684\u65b9\u5411\uff0c\u53ef\u4ee5\u662fforward, back, enter, exit, swap\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>&lt;a nav-direction=\"forward\" href=\"#\/home\"&gt;Home&lt;\/a&gt;<\/pre>\n<hr>\n<h2>$ionicNavBarDelegate<\/h2>\n<p>\u6388\u6743\u63a7\u5236 ion-nav-bar  \u6307\u4ee4\u3002<\/p>\n<h3>\u7528\u6cd5<\/h3>\n<pre>\n&lt;body ng-controller=\"MyCtrl\"&gt;\n  &lt;ion-nav-bar&gt;\n    &lt;button ng-click=\"setNavTitle('banana')\"&gt;\n      Set title to banana!\n    &lt;\/button&gt;\n  &lt;\/ion-nav-bar&gt;\n&lt;\/body&gt;\n<\/pre>\n<p><\/p>\n<pre>\nfunction MyCtrl($scope, $ionicNavBarDelegate) {\n  $scope.setNavTitle = function(title) {\n    $ionicNavBarDelegate.title(title);\n  }\n}\n<\/pre>\n<h3>\u65b9\u6cd5<\/h3>\n<pre>\nalign([direction])\n<\/pre>\n<p>\u5728\u6d4f\u89c8\u5386\u53f2\u4e2d\u540e\u9000\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        event<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>DOMEvent<\/code>\n      <\/td>\n<td>\n<p>\u4e8b\u4ef6\u5bf9\u8c61\uff08\u5982\u6765\u81ea\u70b9\u51fb\u4e8b\u4ef6\uff09<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre>\nalign([direction])\n<\/pre>\n<p>\u5e26\u6709\u6309\u94ae\u7684\u6807\u9898\u5bf9\u9f50\u5230\u6307\u5b9a\u7684\u65b9\u5411\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        direction<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u6807\u9898\u6587\u5b57\u5bf9\u9f50\u7684\u65b9\u5411\u3002\u53ef\u7528: &#8216;left&#8217;, &#8216;right&#8217;, &#8216;center&#8217;\u3002 \u9ed8\u8ba4: &#8216;center&#8217;\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>\u8fd4\u56de\u503c: <\/b>\u5e03\u5c14\u503c\uff0c \u540e\u9000\u6309\u94ae\u662f\u5426\u663e\u793a\u3002<\/p>\n<pre>\nshowBar(show)\n<\/pre>\n<p>\n\u8bbe\u7f6e\u6216\u83b7\u53d6 ion-nav-bar \u662f\u5426\u663e\u793a\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        show<\/p>\n<\/td>\n<td>\n<p>  <code>\u5e03\u5c14\u503c<\/code>\n      <\/td>\n<td>\n<p>\u5bfc\u822a\u680f\u662f\u5426\u663e\u793a\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>\u8fd4\u56de\u503c: <\/b>\u5e03\u5c14\u503c\uff0c \u5bfc\u822a\u680f\u662f\u5426\u663e\u793a\u3002<\/p>\n<pre>\nshowBackButton([show])\n<\/pre>\n<p>\u8bbe\u7f6e\u6216\u83b7\u53d6 ion-nav-back-button  \u662f\u5426\u663e\u793a\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        show<\/p>\n<div><em>(\u53ef\u9009)<\/em><\/div>\n<\/td>\n<td>\n<p>  <code>\u5e03\u5c14\u503c<\/code>\n      <\/td>\n<td>\n<p>\u662f\u5426\u663e\u793a\u540e\u9000\u6309\u94ae<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre>\ntitle(title)\n<\/pre>\n<p>\n\u4e3aion-nav-bar\u8bbe\u7f6e\u6807\u9898\u3002<\/p>\n<table class=\"reference\">\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8be6\u60c5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n        title<\/p>\n<\/td>\n<td>\n<p>  <code>\u5b57\u7b26\u4e32<\/code>\n      <\/td>\n<td>\n<p>\u663e\u793a\u65b0\u6807\u9898\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>$ionicHistory<\/h2>\n<p>$ionicHistory \u7528\u4e8e\u8ddf\u8e2a\u7528\u6237\u5728 app \u5185\u7684\u6d4f\u89c8\u8bb0\u5f55\u3002<\/p>\n<h3>\u65b9\u6cd5<\/h3>\n<pre>viewHistory()<\/pre>\n<p>\u7528\u4e8e\u67e5\u770b\u5386\u53f2\u8bb0\u5f55\u3002<\/p>\n<pre>currentView()<\/pre>\n<p>app \u7684\u5f53\u524d\u89c6\u56fe\u3002<\/p>\n<pre>\ncurrentHistoryId()\n<\/pre>\n<p>\u5386\u53f2\u5806\u6808\u7684 ID\uff0c\u662f\u5f53\u524d\u89c6\u56fe\u7684\u7236\u7c7b\u5bb9\u5668\u3002<\/p>\n<pre>\ncurrentTitle([val])\n<\/pre>\n<p>\u83b7\u53d6\u6216\u8bbe\u7f6e\u5f53\u524d\u89c6\u56fe\u7684\u6807\u9898\u3002<\/p>\n<pre>\nbackView()\n<\/pre>\n<p>\u8fd4\u56de\u4e0a\u6b21\u6d4f\u89c8\u7684\u89c6\u56fe\u3002<\/p>\n<pre>\nbackTitle()\n<\/pre>\n<p>\u83b7\u53d6\u4e0a\u6b21\u6d4f\u89c8\u7684\u89c6\u56fe\u7684\u6807\u9898\u3002<\/p>\n<pre>\nforwardView()\n<\/pre>\n<p>\u8fd4\u56de\u5386\u53f2\u5806\u6808\u4e2d\u5f53\u524d\u89c6\u56fe\u7684\u4e0a\u4e00\u4e2a\u89c6\u56fe\u3002<\/p>\n<pre>currentStateName()<\/pre>\n<p>\u8fd4\u56de\u5f53\u524d\u72b6\u6001\u540d\u3002<\/p>\n<pre>\ngoBack([backCount])\n<\/pre>\n<p>app \u56de\u9000\u89c6\u56fe\uff0c\u5982\u679c\u56de\u9000\u7684\u89c6\u56fe\u5b58\u5728\u3002<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<span>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"><span itemprop=\"description\">ionic \u5bfc\u822a ion-nav-view \u5f53\u7528\u6237\u5728\u4f60\u7684app\u4e2d\u6d4f\u89c8\u65f6\uff0cionic\u80fd\u591f\u68c0\u6d4b&hellip;<\/span><\/p>\n<p class=\"more-link-p btn-align-right\"><a class=\"green zoom-btn\" href=\"https:\/\/www.puzi7.net\/?p=746\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,26],"tags":[43,72,73,93],"class_list":["post-746","post","type-post","status-publish","format-standard","hentry","category-hybrid","category-mobile","tag-angular","tag-hybrid","tag-ionic","tag-mobile","zoom-theme-has-thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.puzi7.net\/?p=746\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7\" \/>\n<meta property=\"og:description\" content=\"ionic \u5bfc\u822a ion-nav-view \u5f53\u7528\u6237\u5728\u4f60\u7684app\u4e2d\u6d4f\u89c8\u65f6\uff0cionic\u80fd\u591f\u68c0\u6d4b&hellip;Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.puzi7.net\/?p=746\" \/>\n<meta property=\"og:site_name\" content=\"\u8c31\u5b50\u68cb - Puzi7\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-25T12:33:22+00:00\" \/>\n<meta name=\"author\" content=\"\u77f3\u8863\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u77f3\u8863\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746\"},\"author\":{\"name\":\"\u77f3\u8863\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/#\\\/schema\\\/person\\\/87dd4941c8ec260c1350b7f41980a190\"},\"headline\":\"ionic \u5bfc\u822a\",\"datePublished\":\"2018-02-25T12:33:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746\"},\"wordCount\":127,\"commentCount\":0,\"keywords\":[\"Angular\",\"Hybrid\",\"Ionic\",\"Mobile\"],\"articleSection\":[\"Hybrid\",\"Mobile\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.puzi7.net\\\/?p=746#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746\",\"url\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746\",\"name\":\"ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/#website\"},\"datePublished\":\"2018-02-25T12:33:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/#\\\/schema\\\/person\\\/87dd4941c8ec260c1350b7f41980a190\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.puzi7.net\\\/?p=746\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/?p=746#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.puzi7.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6280\u672f\",\"item\":\"https:\\\/\\\/www.puzi7.net\\\/?cat=9\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mobile\",\"item\":\"https:\\\/\\\/www.puzi7.net\\\/?cat=26\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Hybrid\",\"item\":\"https:\\\/\\\/www.puzi7.net\\\/?cat=37\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"ionic \u5bfc\u822a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/#website\",\"url\":\"https:\\\/\\\/www.puzi7.net\\\/\",\"name\":\"\u8c31\u5b50\u68cb - Puzi7\",\"description\":\"\u5206\u4eab\uff0c\u6210\u957f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.puzi7.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.puzi7.net\\\/#\\\/schema\\\/person\\\/87dd4941c8ec260c1350b7f41980a190\",\"name\":\"\u77f3\u8863\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g\",\"caption\":\"\u77f3\u8863\"},\"sameAs\":[\"https:\\\/\\\/www.puzi7.net\"],\"url\":\"https:\\\/\\\/www.puzi7.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.puzi7.net\/?p=746","og_locale":"zh_CN","og_type":"article","og_title":"ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7","og_description":"ionic \u5bfc\u822a ion-nav-view \u5f53\u7528\u6237\u5728\u4f60\u7684app\u4e2d\u6d4f\u89c8\u65f6\uff0cionic\u80fd\u591f\u68c0\u6d4b&hellip;Read More","og_url":"https:\/\/www.puzi7.net\/?p=746","og_site_name":"\u8c31\u5b50\u68cb - Puzi7","article_published_time":"2018-02-25T12:33:22+00:00","author":"\u77f3\u8863","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u77f3\u8863","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.puzi7.net\/?p=746#article","isPartOf":{"@id":"https:\/\/www.puzi7.net\/?p=746"},"author":{"name":"\u77f3\u8863","@id":"https:\/\/www.puzi7.net\/#\/schema\/person\/87dd4941c8ec260c1350b7f41980a190"},"headline":"ionic \u5bfc\u822a","datePublished":"2018-02-25T12:33:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.puzi7.net\/?p=746"},"wordCount":127,"commentCount":0,"keywords":["Angular","Hybrid","Ionic","Mobile"],"articleSection":["Hybrid","Mobile"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.puzi7.net\/?p=746#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.puzi7.net\/?p=746","url":"https:\/\/www.puzi7.net\/?p=746","name":"ionic \u5bfc\u822a - \u8c31\u5b50\u68cb - Puzi7","isPartOf":{"@id":"https:\/\/www.puzi7.net\/#website"},"datePublished":"2018-02-25T12:33:22+00:00","author":{"@id":"https:\/\/www.puzi7.net\/#\/schema\/person\/87dd4941c8ec260c1350b7f41980a190"},"breadcrumb":{"@id":"https:\/\/www.puzi7.net\/?p=746#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.puzi7.net\/?p=746"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.puzi7.net\/?p=746#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.puzi7.net\/"},{"@type":"ListItem","position":2,"name":"\u6280\u672f","item":"https:\/\/www.puzi7.net\/?cat=9"},{"@type":"ListItem","position":3,"name":"Mobile","item":"https:\/\/www.puzi7.net\/?cat=26"},{"@type":"ListItem","position":4,"name":"Hybrid","item":"https:\/\/www.puzi7.net\/?cat=37"},{"@type":"ListItem","position":5,"name":"ionic \u5bfc\u822a"}]},{"@type":"WebSite","@id":"https:\/\/www.puzi7.net\/#website","url":"https:\/\/www.puzi7.net\/","name":"\u8c31\u5b50\u68cb - Puzi7","description":"\u5206\u4eab\uff0c\u6210\u957f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.puzi7.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.puzi7.net\/#\/schema\/person\/87dd4941c8ec260c1350b7f41980a190","name":"\u77f3\u8863","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c52c3a64b447af78e58cfa1c73ddd53952049afcf934cd702d71eee91f9907bd?s=96&d=mm&r=g","caption":"\u77f3\u8863"},"sameAs":["https:\/\/www.puzi7.net"],"url":"https:\/\/www.puzi7.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=746"}],"version-history":[{"count":0,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/746\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}