var rd= Math.ceil(Math.random()*10); var node='m'+rd; node=$('#bsMaraDg').datagrid('getSelected'); 这样很好解决多窗口问题!