在JavaScript中,你可以使用以下的函数来获取cookie中某个key对应的值: function getCookie(name) { var value = "; " + document.cookie; var parts = value.split("; " + name..