@mapgis/webclient-common
Version:
mapgis ES6 format for igserver
477 lines (157 loc) • 5.85 kB
HTML
<header id="page-title" class="page-title">
<span class="page-title-main">类名</span>
<span class="page-title-sub">RequestInterceptor</span>
</header>
<section>
<article>
<div class="container-overview">
<div class='vertical-section'>
<div class="members">
<div class="member">
<h4 class="name" id="RequestInterceptor">
<a class="href-link" href="#RequestInterceptor">#</a>
<span class="code-name" id="RequestInterceptor" style="font-size:30px">
new RequestInterceptor<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>请求拦截器对象</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>构造参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>before(config)</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>请求发送前会执行的函数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure(error)</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>请求发送失败会执行的函数</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
</div>
</div>
</div>
</div>
<div class='vertical-section'>
<h3 id='member'>成员变量</h3>
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code><a href="#before">before</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>请求发送前会执行的函数</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#failure">failure</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>请求发送失败会执行的函数</p></code></td>
</tr>
</tbody>
</table>
</div>
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
<div class="members">
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="before">
<a class="href-link" href="#before">#</a>
<span class="code-name">
before
</span>
</h4>
<div class="description">
<p>请求发送前会执行的函数</p>
</div>
<dl class="details">
</dl>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="failure">
<a class="href-link" href="#failure">#</a>
<span class="code-name">
failure
</span>
</h4>
<div class="description">
<p>请求发送失败会执行的函数</p>
</div>
<dl class="details">
</dl>
</div>
</div>
</div>
</article>
</section>