{"id":245,"date":"2022-03-23T11:34:32","date_gmt":"2022-03-23T03:34:32","guid":{"rendered":"https:\/\/sit-open-doc.jkos.app\/?post_type=docs&#038;p=245"},"modified":"2022-06-28T16:05:41","modified_gmt":"2022-06-28T08:05:41","slug":"%e5%9f%ba%e7%a4%8e%e9%96%8b%e6%94%be%e8%83%bd%e5%8a%9b-%e8%b7%af%e7%94%b1","status":"publish","type":"docs","link":"https:\/\/open-doc.jkos.com\/?docs=inapp-%e7%ac%ac%e4%b8%89%e6%96%b9%e6%9c%8d%e5%8b%99\/web-sdk\/v2-0-4\/%e5%9f%ba%e7%a4%8e%e9%96%8b%e6%94%be%e8%83%bd%e5%8a%9b-%e8%b7%af%e7%94%b1","title":{"rendered":"\u57fa\u790e\u958b\u653e\u80fd\u529b &#8211; \u8def\u7531"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">openBrowser<\/h2>\n\n\n\n<p>\u901a\u904e\u547c\u53eb&nbsp;<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">jkos.openBrowser()<\/mark><\/strong>&nbsp;\u4f7f\u7528\u5916\u90e8\u700f\u89bd\u5668\u958b\u555f url \u7bc4\u4f8b<\/p>\n\n\n\n<pre title=\"\u7bc4\u4f8b\" class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup line-numbers\">&lt;button id=\"test\">openBrowser&lt;\/button> \n\n&lt;script> \n  document.querySelector('#test').addEventListener('click', () => {\n    const info = {\n      url :  `${url}` ,\n    }\n\n    jkos.openBrowser(info, (res) => {\n      console.log(res.error)\n      console.log(res.errorMessage)\n    });\n  });\n&lt;\/script><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5165\u53c3\u8aaa\u660e\">\u5165\u53c3\u8aaa\u660e<a href=\"https:\/\/open.jkos.com\/docs\/next\/sdk-base\/router\/openBrowser#%E5%85%A5%E5%8F%83%E8%AA%AA%E6%98%8E\">\u200b<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u53c3\u6578<\/th><th>\u5fc5\u586b<\/th><th>\u578b\u614b<\/th><th>\u8aaa\u660e<\/th><\/tr><\/thead><tbody><tr><td>url<\/td><td>\u662f<\/td><td><code>string<\/code><\/td><td>\u63d0\u4f9b\u958b\u767c\u8005\u5916\u90e8\u958b\u555f&nbsp;<strong>\u9023\u7d50\u7db2\u5740<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"callback-\u53c3\u6578\u8aaa\u660e\">Callback \u53c3\u6578\u8aaa\u660e<a href=\"https:\/\/open.jkos.com\/docs\/next\/sdk-base\/router\/openBrowser#callback-%E5%8F%83%E6%95%B8%E8%AA%AA%E6%98%8E\">\u200b<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u53c3\u6578<\/th><th>\u578b\u614b<\/th><th>\u8aaa\u660e<\/th><\/tr><\/thead><tbody><tr><td>error<\/td><td><code>number<\/code><\/td><td>\u932f\u8aa4\u78bc &#8211;\u00a0\u8a73\u60c5\u8acb\u53c3\u898b\u932f\u8aa4\u78bc\u8aaa\u660e<\/td><\/tr><tr><td>errorMessage<\/td><td><code>string<\/code><\/td><td>\u6b64\u63cf\u8ff0\u70ba\u76f8\u95dc\u932f\u8aa4\u7684 ASCII \u7de8\u78bc\u53ef\u8b80\u6587\u5b57<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">redirectMaintainPage<\/h2>\n\n\n\n<p>\u901a\u904e\u547c\u53eb&nbsp;<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">jkos.redirectMaintainPage()<\/mark><\/strong>&nbsp;\u8f49\u5c0e\u81f3\u8857\u53e3\u63d0\u4f9b\u7684\u7dad\u8b77\u9801\u9762\u7bc4\u4f8b<\/p>\n\n\n\n<pre title=\"\u7bc4\u4f8b\" class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup line-numbers\">&lt;button id=\"test\">redirectMaintainPage&lt;\/button> \n\n&lt;script> \n  document.querySelector('#test').addEventListener('click', () => {\n    const info = {\n      navbarTitle: `\u65b0\u901a\u77e5\uff01`,\n      title :  `\u670d\u52d9\u7dad\u8b77\u4e2d` ,\n      content: `\u7dad\u8b77\u671f\u9593\uff0c\u9020\u6210\u4e0d\u4fbf\u8acb\u898b\u8ad2`\n    }\n\n    jkos.redirectMaintainPage(info, (res) => {\n      console.log(res.error)\n      console.log(res.errorMessage)\n    });\n  });\n&lt;\/script><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5165\u53c3\u8aaa\u660e\">\u5165\u53c3\u8aaa\u660e<a href=\"https:\/\/open.jkos.com\/docs\/next\/sdk-base\/router\/redirectMaintainPage#%E5%85%A5%E5%8F%83%E8%AA%AA%E6%98%8E\">\u200b<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u53c3\u6578<\/th><th>\u5fc5\u586b<\/th><th>\u578b\u614b<\/th><th>\u8aaa\u660e<\/th><th>\u9810\u8a2d<\/th><\/tr><\/thead><tbody><tr><td>navbarTitle<\/td><td>\u5426<\/td><td><code>string<\/code><\/td><td>\u7dad\u8b77\u9801&nbsp;<strong>\u5c0e\u89bd\u6a19\u984c<\/strong><\/td><td>\u7dad\u8b77\u901a\u77e5<\/td><\/tr><tr><td>title<\/td><td>\u5426<\/td><td><code>string<\/code><\/td><td>\u7dad\u8b77\u9801&nbsp;<strong>\u6a19\u984c<\/strong><\/td><td>\u670d\u52d9\u7dad\u8b77\u4e2d<\/td><\/tr><tr><td>content<\/td><td>\u5426<\/td><td><code>string<\/code><\/td><td>\u7dad\u8b77\u9801&nbsp;<strong>\u5167\u5bb9<\/strong><\/td><td>\u6b64\u670d\u52d9\u66ab\u6642\u7121\u6cd5\u4f7f\u7528\uff0c\u7dad\u8b77\u671f\u9593\u9020\u6210\u4e0d\u4fbf\u8acb\u898b\u8ad2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"callback-\u53c3\u6578\u8aaa\u660e\">Callback \u53c3\u6578\u8aaa\u660e<a href=\"https:\/\/open.jkos.com\/docs\/next\/sdk-base\/router\/redirectMaintainPage#callback-%E5%8F%83%E6%95%B8%E8%AA%AA%E6%98%8E\">\u200b<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u53c3\u6578<\/th><th>\u578b\u614b<\/th><th>\u8aaa\u660e<\/th><\/tr><\/thead><tbody><tr><td>error<\/td><td><code>number<\/code><\/td><td>\u932f\u8aa4\u78bc &#8211;\u00a0\u8a73\u60c5\u8acb\u53c3\u898b\u932f\u8aa4\u78bc\u8aaa\u660e<\/td><\/tr><tr><td>errorMessage<\/td><td><code>string<\/code><\/td><td>\u6b64\u63cf\u8ff0\u70ba\u76f8\u95dc\u932f\u8aa4\u7684 ASCII \u7de8\u78bc\u53ef\u8b80\u6587\u5b57<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u932f\u8aa4\u78bc\u56de\u8986\">\u932f\u8aa4\u78bc\u56de\u8986<a href=\"https:\/\/open.jkos.com\/docs\/next\/sdk-base\/router\/redirectMaintainPage#%E9%8C%AF%E8%AA%A4%E7%A2%BC%E5%9B%9E%E8%A6%86\">\u200b<\/a><\/h3>\n\n\n\n<p>\u8acb\u53c3\u95b1\u00a0<a href=\"https:\/\/open-doc.jkos.com\/?docs=sdk\/v2-0-4\/%e9%8c%af%e8%aa%a4%e4%bb%a3%e7%a2%bc\" data-type=\"URL\" data-id=\"https:\/\/open-doc.jkos.com\/?docs=sdk\/v2-0-4\/%e9%8c%af%e8%aa%a4%e4%bb%a3%e7%a2%bc\" target=\"_blank\" rel=\"noreferrer noopener\">\u932f\u8aa4\u4ee3\u78bc\u9644\u9304<\/a>\u3002<\/p>\n","protected":false},"featured_media":0,"parent":242,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-245","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=245"}],"version-history":[{"count":2,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/245\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/245\/revisions\/721"}],"up":[{"embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/242"}],"next":[{"title":"\u57fa\u790e\u958b\u653e\u80fd\u529b - \u4ecb\u9762\u4ea4\u4e92","link":"https:\/\/open-doc.jkos.com\/?docs=inapp-%e7%ac%ac%e4%b8%89%e6%96%b9%e6%9c%8d%e5%8b%99\/web-sdk\/v2-0-4\/%e5%9f%ba%e7%a4%8e%e9%96%8b%e6%94%be%e8%83%bd%e5%8a%9b-%e4%bb%8b%e9%9d%a2%e4%ba%a4%e4%ba%92","href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/244"}],"prev":[{"title":"\u57fa\u790e\u958b\u653e\u80fd\u529b - \u5c0e\u822a\u6b04","link":"https:\/\/open-doc.jkos.com\/?docs=inapp-%e7%ac%ac%e4%b8%89%e6%96%b9%e6%9c%8d%e5%8b%99\/web-sdk\/v2-0-4\/%e5%9f%ba%e7%a4%8e%e9%96%8b%e6%94%be%e8%83%bd%e5%8a%9b-%e5%b0%8e%e8%88%aa%e6%ac%84","href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/246"}],"wp:attachment":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=245"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}