After the page has finished rendering data bootstrap

  Today, meet a customer's needs, we require aggregate data at the top of the page;

  Then there is a onLoadSuccess looked bootstrap method, simply record it for later use;

1 onLoadSuccess: function (data) {
2     jp.post("", $("#searchForm").serializeJSON(), function (data) {
3         if (data.success) {
4             // 成功后的操作
5         } else {
6             jp.error(data.msg);
7         }
8     })
9 },

   Actually very simple, bootstrap still provides a lot of practical approach, to continue to explore the future!

Guess you like

Origin www.cnblogs.com/JillisRealM/p/11564353.html