次のコードを書いて、modeldata と currenttime をコントローラー action.what に送信します。これを渡す正しい方法は何ですか。
$(document).ready(function () {
timeClock = setInterval("TimeTick()", 10);
SwipeIn(); SwipeOut();
$('#btnswipeIn').click(function () {
clearTimeout(swipeinId);
var ptime = $("#swipeIn").text();
alert(ptime);
var url = "EmployeeDashBoard/Index/";
$.post(url, { model: $("#dashboard").serialize(), time: ptime }, function (result) { $('#time').html(resul.time) });
});
});