Cookie 可以在同一域上的不同页面中存储和检索信息。使用 Util.cookieRead()
方法从 Cookie 检索值。
您可以通过在数据元素中设置值来读取 Cookie。
Cookie 值会存储在数据元素中。然后,您可以引用规则中的数据元素来分配所需的变量。
调用 s.Util.cookieRead()
方法可读取所需的 Cookie 值。其唯一参数是一个字符串,且是必需参数。此方法会返回包含 Cookie 值的字符串。如果 Cookie 不存在,则会返回空字符串。
// Reads the value set in the cookie named 'example' and assigns the value to eVar1
s.eVar1 = s.Util.cookieRead("example");