mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-18 05:01:21 +08:00
website: add search data. #105 b034d7970d
This commit is contained in:
@ -39,7 +39,7 @@
|
||||
<p>基于 Node.js 平台的下一代 web 开发框架,包含 <a href="https://koajs.com/">Koa</a> 的 API 参考列表和一些示例。</p>
|
||||
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
|
||||
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#hello-world">Hello World</a><a aria-hidden="true" class="leve3 tocs-link" href="#级联">级联</a><a aria-hidden="true" class="leve3 tocs-link" href="#配置">配置</a><a aria-hidden="true" class="leve3 tocs-link" href="#appcallback">app.callback()</a><a aria-hidden="true" class="leve3 tocs-link" href="#错误处理">错误处理</a><a aria-hidden="true" class="leve3 tocs-link" href="#context-示例">Context 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#applisten">app.listen(...)</a><a aria-hidden="true" class="leve3 tocs-link" href="#ctxthrow-示例">ctx.throw 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#ctxassert-示例">ctx.assert 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#context上下文-api">Context(上下文) API</a><a aria-hidden="true" class="leve3 tocs-link" href="#ctxcookiesset-参数">ctx.cookies.set 参数</a><a aria-hidden="true" class="leve3 tocs-link" href="#请求request">请求(Request)</a><a aria-hidden="true" class="leve3 tocs-link" href="#响应response">响应(Response)</a><a aria-hidden="true" class="leve3 tocs-link" href="#请求request别名">请求(Request)别名</a><a aria-hidden="true" class="leve3 tocs-link" href="#响应response别名">响应(Response)别名</a><a aria-hidden="true" class="leve3 tocs-link" href="#requestfresh-示例">request.fresh 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#ctxis-示例">ctx.is 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#ctxaccepts-示例">ctx.accepts 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#requestacceptscharsets-示例">request.acceptsCharsets 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#responseset-示例">response.set 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#responsetype-示例">response.type 示例</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#hello-world">Hello World</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#级联">级联</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#配置">配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#appcallback">app.callback()</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#错误处理">错误处理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#context-示例">Context 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#applisten">app.listen(...)</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ctxthrow-示例">ctx.throw 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ctxassert-示例">ctx.assert 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#context上下文-api">Context(上下文) API</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ctxcookiesset-参数">ctx.cookies.set 参数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#请求request">请求(Request)</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#响应response">响应(Response)</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#请求request别名">请求(Request)别名</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#响应response别名">响应(Response)别名</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#requestfresh-示例">request.fresh 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ctxis-示例">ctx.is 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ctxaccepts-示例">ctx.accepts 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#requestacceptscharsets-示例">request.acceptsCharsets 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#responseset-示例">response.set 示例</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#responsetype-示例">response.type 示例</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="hello-world"><a aria-hidden="true" tabindex="-1" href="#hello-world"><span class="icon icon-link"></span></a>Hello World</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
<p><a href="https://koajs.com/">Koa</a> 需要 <a href="https://nodejs.org">node v7.6.0</a> 或更高版本来支持ES2015、异步方法,你可以安装自己支持的 <code>node</code> 版本</p>
|
||||
|
Reference in New Issue
Block a user