@mapgis/webclient-common
Version:
mapgis ES6 format for igserver
308 lines (93 loc) • 3.18 kB
HTML
<header id="page-title" class="page-title">
<span class="page-title-main">类名</span>
<span class="page-title-sub">Interceptor</span>
</header>
<section>
<article>
<div class="container-overview">
<div class='vertical-section'>
<div class="members">
<div class="member">
<h4 class="name" id="Interceptor">
<a class="href-link" href="#Interceptor">#</a>
<span class="code-name" id="Interceptor" style="font-size:30px">
new Interceptor<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>urls</code></td>
<td class="type">
<span class="param-type">
Array
</span>
|
<span class="param-type">
String
</span>
</td>
<td class="default">
[]
</td>
<td class="description last"><p>本次拦截会影像的链接,只要链接包含urls的值,就会被影响,可以设置为字符串或数组,如果未设置值,则会影响全部请求</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>before</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
null
</td>
<td class="description last"><p>请求发送前响应的函数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>after</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
null
</td>
<td class="description last"><p>请求发送完成后响应的函数</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
</div>
</div>
</div>
</div>
</article>
</section>