js 中 window['g']是什么意思


   
  window['g'] =
  
$("#maingrid").ligerGrid({
height: '100%',
columns: [
{ display: '存货编码', name: 'No' },
{ display: '存货名称', name: 'Title' },
{ display: '规格型号',name: 'Model' },
{ display: '材料用途', name: 'UseFor' },
{ display: '是否为消耗品', name: 'ConsumableFlg' ,
render: function (row) {
if (row.ConsumableFlg=="True")
return '是';
else
return '否';
}
},
{ display: '最高库存',name: 'Upper' },
{ display: '最低库存',name: 'Lower' }
], url: '/WmsBasics/GetGoodsList', data: null, pageSize: 30, rownumbers: true,dataAction: 'local',
});
$("#pageloading").hide();
});

JavaScript

我爱Sugar 10 years, 10 months ago

实际就是声明了一个全局变量g
你可以在浏览器控制台试一下window['g']='hehe';alert(g);

妹子挑软的捏 answered 10 years, 10 months ago

Your Answer