14
Ho il seguente codicejQuery + JSON come definire chiave variabile
$.post(
"/factory/set",{
key : value
},
function(response) {
});
}, "json"
);
dove
key = "foo"
value = "bar"
ma il server ottiene sempre "chiave" e "bar", c'è un modo per imposta la chiave come variabile, non come stringa?
funziona come un fascino. Grazie! – Gessle