2016-10-13 00:16:48 点击量:8 标签: 收藏本文
[Flex]Flex实现cookies功能代码示例
- import flash.external.ExternalInterface;
- import flash.net.URLVariables;
- public var Cookies: URLVariables = new URLVariables(ExternalInterface.call("function(){return '8=); '+document.cookie}").replace(/;\s/g, "&"));
- Cookies['test']="blah";
- trace("cookie " + Cookies['test']);