Browse Source

Merge pull request #153 from cokert/patch-3

Update examples.html
文翼 11 years ago
parent
commit
538464e924
1 changed files with 6 additions and 3 deletions
  1. 6 3
      docs/examples.html

+ 6 - 3
docs/examples.html

@@ -953,9 +953,12 @@
                                 $('#get-data').click(function () {
                                     alert('current data: ' + JSON.stringify($table.bootstrapTable('getData')));
                                 });
-                                // This demonstrates utilizing the data-method attribute to use one jQuery handler to execute multiple methods 
-                                // ($this).data('method') retrieves the value of the data-method attribute of the object that was clicked
-                                // which is then passed to the bootstrapTable function. Only the load and append methods require a parameter                                 
+                                // This demonstrates utilizing the data-method attribute to use one 
+                                //     jQuery handler to execute multiple methods. 
+                                // ($this).data('method') retrieves the value of the data-method 
+                                //     attribute of the object that was clicked which is then passed to 
+                                //     the bootstrapTable function. 
+                                // Only the load and append methods require a parameter                                 
                                 $('#load-data, #append-data, #check-all, #uncheck-all, ' +
                                         '#show-loading, #hide-loading').click(function () {
                                     $table.bootstrapTable($(this).data('method'), getRows());