如何用javascript取出session中的值?

在服务器端给session中的元素赋值,在客户端脚本中如何取出来?
例如
服务器端:
Session["UserID"] = "admin";

客户端怎么取出来?

原文地址:https://www.cnblogs.com/supersand/p/423111.html