[转]js获得session
1 <script type="text/javascript"> 2 function GetSession() { 3 var val = '<%=strSession %>'; 4 alert(val); 5 } 6 </script>
var id = '<%=Session["UserName"] %>';
1 <script type="text/javascript"> 2 function GetSession() { 3 var val = '<%=strSession %>'; 4 alert(val); 5 } 6 </script>
var id = '<%=Session["UserName"] %>';