14
键我有以下代码的jQuery + JSON如何定义从变量
$.post(
"/factory/set",{
key : value
},
function(response) {
});
}, "json"
);
其中
key = "foo"
value = "bar"
但是服务器总是得到“重点”和“酒吧”,是有办法将密钥设置为变量,而不是字符串?
就像一个魅力。谢谢! – Gessle 2012-04-07 17:14:37