浏览代码

Update methods examples.

zhixin 11 年之前
父节点
当前提交
ed41bb9d88
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      docs/examples.html

+ 6 - 1
docs/examples.html

@@ -954,9 +954,14 @@
                                     alert('current data: ' + JSON.stringify($table.bootstrapTable('getData')));
                                     alert('current data: ' + JSON.stringify($table.bootstrapTable('getData')));
                                 });
                                 });
                                 $('#load-data, #append-data, #check-all, #uncheck-all, ' +
                                 $('#load-data, #append-data, #check-all, #uncheck-all, ' +
-                                        '#show-loading, #hide-loading, #refresh').click(function () {
+                                        '#show-loading, #hide-loading').click(function () {
                                     $table.bootstrapTable($(this).data('method'), getRows());
                                     $table.bootstrapTable($(this).data('method'), getRows());
                                 });
                                 });
+                                $('#refresh').click(function () {
+                                    $table.bootstrapTable('refresh', {
+                                        url: 'data1.json'
+                                    });
+                                });
                                 $('#remove-data').click(function () {
                                 $('#remove-data').click(function () {
                                     var selects = $table.bootstrapTable('getSelections');
                                     var selects = $table.bootstrapTable('getSelections');
                                         ids = $.map(selects, function (row) {
                                         ids = $.map(selects, function (row) {