【发布时间】:2014-05-02 09:29:00
【问题描述】:
如果选中,我正在尝试将单选按钮值存储在我的本地存储函数中。目前它只是存储列表中的最后一个值,即“3”。请看我的小提琴:http://jsfiddle.net/3u7Xj/148/
这样的?
if (!$(this).is(':radio') || this.checked) {
$(this) = value;
}
【问题讨论】:
-
好吧
$(this) = value会给你一个错误:赋值的左边必须是一个变量。
标签: javascript jquery local-storage