Browse Source

Update methods examples.

zhixin 11 years ago
parent
commit
ed41bb9d88
1 changed files with 6 additions and 1 deletions
  1. 6 1
      docs/examples.html

+ 6 - 1
docs/examples.html

@@ -954,9 +954,14 @@
                                     alert('current data: ' + JSON.stringify($table.bootstrapTable('getData')));
                                 });
                                 $('#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());
                                 });
+                                $('#refresh').click(function () {
+                                    $table.bootstrapTable('refresh', {
+                                        url: 'data1.json'
+                                    });
+                                });
                                 $('#remove-data').click(function () {
                                     var selects = $table.bootstrapTable('getSelections');
                                         ids = $.map(selects, function (row) {