Javascript返回当前会话cookie中所有键值控件的方法。
下面的js代码输出所有cookie键值
与此文档相关联的cookie:
document.write(文档。饼干);
这台机器的输出结果如下。
复制代码如下:本文档相关联的饼干:__gads = id = 88235e28adb2de90:T = 1371793250 = alni_mzzqvalwhtdl1eqfeu4ekh4zmmplq;aspsessionidsqqdbssd = aiafkjpbboekijnamaomgjjh aspsessionidsqqbctsd = epomlbjdjbkbgkhbjmbgddpc;__qca =;p0-1744690351-1372043640630;aspsessionidqssdastc = efkibpodbgmkhiinagpnmfca;aspsessionidqqrbcttc = fhfaalibdledfdcfjmkihicp;__utma = 119627022.880502788.1371793248.1372301378.1372312534.8;__utmb = 119627022.4.10.1372312534;__utmc = 119627022;__utmz 119627022.1371803017.3.2 utmcsr = =。眉目传情| utmccn =(有机)| utmcmd =有机| utmctr =
希望本文能对大家的javascript程序设计有所帮助。