Skip to content

Commit 8445501

Browse files
committed
update en doc
1 parent bf77d82 commit 8445501

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

site/client/components/doc/cn/PostData.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<div class="components">
33
<h3>向服务端发送数据</h3>
4-
<p>你可以设置<code>data</code> 来将一些附带的数据发送给服务端。</p>
4+
<p>你可以设置<code>data</code> 来将一些附带的数据发送给服务端。
5+
当然你也可以将一些数据包含在 header 中传递过去,你只需要绑定到 <code>header</code>即可。</p>
56
<h4>Exmaple:</h4>
67
<p>下面会将输入框的内容一并发送过去</p>
78
<div class="m-form">
@@ -52,6 +53,7 @@ export default {
5253
};
5354
&lt;/script&gt;
5455
</code></pre>
56+
<p class="warnning">你可以设置 <code>isXhr</code> 来取消向服务端上传。</p>
5557
<a href="">查看完整源码</a>
5658
</div>
5759
</template>
@@ -81,7 +83,6 @@ export default {
8183
8284
methods: {
8385
imageuploaded(res) {
84-
8586
}
8687
}
8788

site/client/components/doc/en/PostData.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<div class="components">
33
<h3>Send Data to Server</h3>
4-
<p>Setting <code>data</code> attribute will send some data you bind to the server via ajax</p>
4+
<p>Setting <code>data</code> attribute will send some data you bind to the server via ajax.
5+
Of course you could pass data to server via header, just pass data to <code>header</code>. </p>
56
<h4>Exmaple:</h4>
67
<p>You could type some text here and its text will be sended to the server when you upload your image.</p>
78
<div class="m-form">
@@ -52,6 +53,7 @@ export default {
5253
};
5354
&lt;/script&gt;
5455
</code></pre>
56+
<p class="warnning">Set <code>isXhr</code> equal false to cancel default ajax uploading.</p>
5557
<a href="">View code source</a>
5658
</div>
5759
</template>

0 commit comments

Comments
 (0)