<script type="text/javascript"> $(function () { console.info($('#dd')); }); </script> </head> <body> <form id="form1" runat="server"> <div id="dd" title="My Dialog" style=" 400px; height: 200px;" data-options="iconCls:'icon-save',resizable:true,modal:true"> Dialog Content. </div> </form> </body>
console.info在ie下会报错,但是用火狐的firbug的话,你能清楚的看到自己取到的是什么