0
我搜索了关于如何使用jQuery设置cookie的教程(使用jQuery cookie插件),它们都似乎面向比我更有经验的人。使用jQuery设置cookie
下面是一些示例代码:
<button>Example</button>
<div id="whatever" style="background:red;">Test</div>
<script>
$('button').click(function() {
$('#whatever').css("background","yellow");
});
</script>
我怎样才能保持#whatever
的背景黄经饼干吗?
完美!谢谢。 – UserIsCorrupt 2012-01-29 23:07:02
:)如果它是完美的,你能接受答案吗? – 2012-01-29 23:08:02