ソースを参照

Merge pull request #105 from thx2001r/patch-2

Added cache option for AJAX calls to Examples
文翼 11 年 前
コミット
2b148ad0d8
1 ファイル変更3 行追加2 行削除
  1. 3 2
      docs/examples.html

+ 3 - 2
docs/examples.html

@@ -122,7 +122,7 @@
                 </div>
                 <p data-zh="不通过JavaScript的方式启动Bootstrap Table。">Activate bootstrap table without writing JavaScript.</p>
                 <div class="bs-example">
-                    <table data-toggle="table" data-url="data1.json" data-height="299">
+                    <table data-toggle="table" data-url="data1.json" data-cache="false" data-height="299">
                         <thead>
                             <tr>
                                 <th data-field="id">Item ID</th>
@@ -143,7 +143,7 @@
                                 <h4 class="modal-title" id="myModalLabel" data-zh="基本表格">Basic Table</h4>
                             </div>
                             <div class="modal-body">
-                                <table data-toggle="table" data-url="data1.json" data-height="299">
+                                <table data-toggle="table" data-url="data1.json" data-cache="false" data-height="299">
                                     <thead>
                                     <tr>
                                         <th data-field="id">Item ID</th>
@@ -976,6 +976,7 @@
                                 $('#table-javascript').bootstrapTable({
                                     method: 'get',
                                     url: 'data2.json',
+                                    cache: false,
                                     height: 400,
                                     striped: true,
                                     pagination: true,