{"id":6912,"date":"2025-09-28T14:57:17","date_gmt":"2025-09-28T06:57:17","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=6912"},"modified":"2025-09-30T13:53:06","modified_gmt":"2025-09-30T05:53:06","slug":"%e5%a6%82%e4%bd%95%e5%8a%a8%e6%80%81%e6%98%be%e7%a4%ba%e6%88%96%e9%9a%90%e8%97%8f%e6%8c%87%e5%ae%9a%e7%bb%84%e4%bb%b6%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=6912","title":{"rendered":"\u5982\u4f55\u52a8\u6001\u63a7\u5236\u7ec4\u4ef6\u7684\u663e\u793a\u4e0e\u9690\u85cf\uff1f"},"content":{"rendered":"\n<p>\u4ece 8.5.2 \u7248\u672c\u5f00\u59cb\uff0c\u6211\u4eec\u65b0\u589e\u4e86\u4e09\u4e2a API\uff08keepState\u3001revokeKeepState\u3001isStateKept\uff09\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u7075\u6d3b\u5730\u52a8\u6001\u63a7\u5236\u7ec4\u4ef6\u7684\u663e\u793a\u4e0e\u9690\u85cf\u3002keepState\u00a0\u662f\u4e13\u4e3a\u5e94\u7528\u5c42\u8bbe\u8ba1\u7684\u7ec4\u4ef6\u72b6\u6001\u7ba1\u7406\u51fd\u6570\uff0cWeb SDK \u5185\u90e8\u4e0d\u4f1a\u8c03\u7528\u5b83\u3002\u76ee\u524d\u8be5\u529f\u80fd\u4e3b\u8981\u7528\u4e8e\u7ba1\u7406\u7ec4\u4ef6\u7684\u663e\u793a\/\u9690\u85cf\u72b6\u6001\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u65b9\u5f0f\u5982\u4e0b\uff1a\u9996\u5148\u901a\u8fc7\u00a0show()\u00a0\/\u00a0hide()\u00a0\u65b9\u6cd5\u8bbe\u7f6e\u7ec4\u4ef6\u7684\u53ef\u89c1\u6027\uff0c\u968f\u540e\u8c03\u7528\u00a0keepState()\u00a0\u4ee5\u9501\u5b9a\u5f53\u524d\u663e\u793a\u72b6\u6001\u3002\u8be5\u65b9\u6cd5\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u9632\u6b62 SDK \u5728\u4e0d\u53ef\u9884\u77e5\u7684\u65f6\u673a\u81ea\u52a8\u4fee\u6539\u7ec4\u4ef6\u7684\u53ef\u89c1\u6027\u3002<\/p>\n\n\n\n<p>\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const redactApplyMenu = await pdfui.getComponentByName('fv--contextmenu-item-apply');\nredactApplyMenu.hide(); \/\/ \u9690\u85cf\u7ec4\u4ef6\nredactApplyMenu.show(); \/\/ \u663e\u793a\u7ec4\u4ef6\nredactApplyMenu.keepState(); \n\/\/ \u5728\u5fc5\u8981\u65f6\u53ef\u4ee5\u64a4\u9500keep-state\u72b6\u6001\nredactApplyMenu.revokeKeepState();<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece 8.5.2 \u7248\u672c\u5f00\u59cb\uff0c\u6211\u4eec\u65b0\u589e\u4e86\u4e09\u4e2a API\uff08keepState\u3001revokeKeepState\u3001isSt [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[841,1103,1047,447,1104],"class_list":["post-6912","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-api","tag-1103","tag-1047","tag-447","tag-1104"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/6912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6912"}],"version-history":[{"count":2,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/6912\/revisions"}],"predecessor-version":[{"id":7020,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/6912\/revisions\/7020"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}