日期:2014-05-16 浏览次数:20860 次
new Ajax.Request(url, {
method: 'post',
parameters: 'id=' + id,
onComplete: function (response) {
var data = response.responseText;
if (data != null) {
var json = eval("(" + data + ")");
bianliang = json["test"];
}
}
});
//alert(bianliang);
if (bianliang != null) {
//........
}