// 定义页面中的siderbar组件 ;(function($, window, document, gl, undefined) { gl.namespace('pages.siderbar'); first(); // 生成一级导航 function first() { $.ajax({ type: "post", url: "BattInfAction!serchAllStation", async:true, dataType:'text', data:null, success: function(data){ console.info(data); } }); } })(jQuery, window, document, GLOBAL);