Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ihtml5 committed Apr 25, 2018
1 parent cc11d71 commit 6d7fe36
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,73 +33,73 @@ yarn add jscalpel --save
<script charset="utf-8" src="https://unpkg.com/jscalpel@latest/dist/index.js"></script>
```
#### APIS
<table class="scalpel-table">
<table class="scalpel-table">
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>默认值</th>
<th>用途</th>
<th>是否必须</th>
<th>适配版本号</th>
<th>parameter</th>
<th>type</th>
<th>default value</th>
<th>use</th>
<th>isRequired</th>
<th>required version</th>
</tr>
</thead>
<tbody>
<tr>
<td>target</td>
<td>string/object</td>
<td>{}</td>
<td>目标对象</td>
<td></td>
<td>所有</td>
<td>target</td>
<td>true</td>
<td>all</td>
</tr>
<tr>
<td>deep</td>
<td>boolean</td>
<td>false</td>
<td>是否深度拷贝目标对象</td>
<td></td>
<td>所有</td>
<td>whether or not to copy the target object in depth</td>
<td>false</td>
<td>all</td>
</tr>
<tr>
<td>prefix</td>
<td>string</td>
<td>undefined</td>
<td>公共前缀,自动为keys加前缀</td>
<td></td>
<td>所有</td>
<td>public prefix, automatically added for the keys</td>
<td>false</td>
<td>all</td>
</tr>
<tr>
<td>success</td>
<td>function</td>
<td>function () {}</td>
<td>分析成功时调用的函数</td>
<td></td>
<td>大于0.6.2</td>
<td>The function that was called when the analysis was successful</td>
<td>true</td>
<td>^0.6.2</td>
</tr>
<tr>
<td>error</td>
<td>function</td>
<td>function () {}</td>
<td>分析失败时调用的函数</td>
<td></td>
<td>大于0.6.2</td>
<td>The function that is called when the analysis fails.</td>
<td>false</td>
<td>^0.6.2</td>
</tr>
<tr>
<td>path</td>
<td>string/array/function</td>
<td>[]</td>
                       <td>路径</td>
<td></td>
<td>大于0.6.2</td>
<td>path</td>
<td>false</td>
<td>^0.6.2</td>
</tr>
<tr>
<td>plugins</td>
<td>array</td>
<td>[]</td>
<td>插件集,类似于webpack的 plugins</td>
<td></td>
<td>大于0.6.2</td>
<td>A plug-in set, similar to the webpack plugins.</td>
<td>false</td>
<td>^0.6.2</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 6d7fe36

Please sign in to comment.