$.fn.computation = function ()
{
var a = '5';
var b='6';
var op='+';
$.ajax({
type: 'POST',
url: 'http://localhost/default_service/api/Home/calulate_total',
data: '{"a":' + a +'"b":'+ b + '}',
contentType: 'application/x-www-form-urlencoded',
dataType: "json",
success: (function (a) {
$("#screen_label1").text(a);
//$.cookie('history', button_values + '=' + total);
//button_values = $("#screen_label1").text();
})
});
}
我想在数据部分传递变量a b和c ..我如何传递这些变量..帮助我!