设置Session的代码是Session[“test”]=“hello”,取出该Session对象的语句是()。


设置Session的代码是Session[“test”]=“hello”,取出该Session对象的语句是()。

stringmyvar=Session[“test”].ToString()

stringmyvar=Session.getString()

stringmyvar=Session.get(“test”)

intmyvar=Session.get(“hello”)

正确答案:stringmyvar=Session[“test”].ToString()


Tag:语句 对象 代码 时间:2024-10-21 22:12:10