设置cookie的值

document.cookie = "tdid="+obj;

 

 

 

 

获取

 string tdid = Request.Cookies["tdid"].Value;
 Page.ClientScript.RegisterStartupScript(this.GetType(), "", "tanchu(" + tdid + ")", true);

 

 

其中tanchu(*)是JavaScript中的一个方法,后台可以这样调用

相关文章:

  • 2021-08-14
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-11-25
  • 2021-12-27
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案