"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[1748],{4671:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>s,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"XXTLanControl.lua/web-file/README","title":"\u5171\u4eab\u6587\u4ef6","description":"LCC.web_file \u5bf9\u5e94\u524d\u7aef\u6587\u4ef6\u7ba1\u7406\u5668\u91cc\u7684\u201c\u8d44\u6e90\u76ee\u5f55\u201d\u3002","source":"@site/docs/XXTLanControl.lua/web-file/README.md","sourceDirName":"XXTLanControl.lua/web-file","slug":"/XXTLanControl.lua/web-file/","permalink":"/docs/XXTLanControl.lua/web-file/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"\u53d1\u9001\u4e2d\u63a7\u65e5\u5fd7 (LCC.log)","permalink":"/docs/XXTLanControl.lua/core/log"},"next":{"title":"\u5217\u51fa\u4e2d\u63a7\u6587\u4ef6 (LCC.web_file.list)","permalink":"/docs/XXTLanControl.lua/web-file/list"}}');var r=t(4848),l=t(8453);const s={sidebar_position:2},i="\u5171\u4eab\u6587\u4ef6",c={},a=[{value:"\u5f15\u5165\u6a21\u5757",id:"\u5f15\u5165\u6a21\u5757",level:2},{value:"\u5f00\u59cb\u4e4b\u524d",id:"\u5f00\u59cb\u4e4b\u524d",level:2}];function d(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u5171\u4eab\u6587\u4ef6",children:"\u5171\u4eab\u6587\u4ef6"})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"LCC.web_file"})," \u5bf9\u5e94\u524d\u7aef\u6587\u4ef6\u7ba1\u7406\u5668\u91cc\u7684\u201c\u8d44\u6e90\u76ee\u5f55\u201d\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:["\u5b83\u9002\u5408\u505a\u811a\u672c\u5171\u4eab\u8d44\u6e90\u3001\u6587\u672c\u8bfb\u5199\u3001\u6587\u4ef6\u642c\u8fd0\u548c\u6821\u9a8c\u503c\u8ba1\u7b97\uff1b\u5982\u679c\u4f60\u9700\u8981\u64cd\u4f5c ",(0,r.jsx)(n.code,{children:"\u811a\u672c\u76ee\u5f55"})," \u6216 ",(0,r.jsx)(n.code,{children:"\u62a5\u544a\u76ee\u5f55"}),"\uff0c\u5efa\u8bae\u6539\u7528\u754c\u9762\u91cc\u7684\u6587\u4ef6\u7ba1\u7406\u76f8\u5173\u529f\u80fd\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"\u5f15\u5165\u6a21\u5757",children:"\u5f15\u5165\u6a21\u5757"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-lua",children:'local LCC = require("XXTLanControl")\n'})}),"\n",(0,r.jsx)(n.h2,{id:"\u5f00\u59cb\u4e4b\u524d",children:"\u5f00\u59cb\u4e4b\u524d"}),"\n",(0,r.jsxs)(n.p,{children:["\u4f7f\u7528\u4efb\u4f55\u63a5\u53e3\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u7ecf\u8c03\u7528 ",(0,r.jsx)(n.code,{children:"LCC.set_api_url()"})," \u6216\u4ece\u4e2d\u63a7\u542f\u52a8\u811a\u672c\uff0c\u5e76\u6267\u884c ",(0,r.jsx)(n.code,{children:"LCC.connect()"})," \u5b8c\u6210\u521d\u59cb\u5316\u3002"]})]})}function u(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>i});var o=t(6540);const r={},l=o.createContext(r);function s(e){const n=o.useContext(l);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),o.createElement(l.Provider,{value:n},e.children)}}}]);