PC에 mvc 3 면도기 프로젝트가 있습니다. Ipad에 문제가 하나 있습니다. artikel 목록과 테스트를위한 추가 버튼이 있습니다. 날짜 시간 지금은 그때 내가 다시 날짜 시간을 반환하는 추가 buttom을 누른 다음 다시 같은 시간, Ipad에서 내 프로젝트를 반환 두 번째 시간을 누르면 내가 생각하는 캐시에서 taked 값입니다, 모든 사람이 나를 도울 수 있습니까 ?? ? 이 jQuery 코드 :아약스 요청은 키오스크 브라우저에서 캐싱합니다.
$(document).ready(function(){
$(".AddButton").live("click", function(){
var buttonId = $(this).attr("id");
var id = buttonId.substr(buttonId.indexOf("_"));
$.ajax({
type:'POST',
dataType:'json',
url: "@Url.Action("AddCommandArtikelJson","Home")",
data: {id:$("#Id"+id).val(), id_priceOnPad: $(this).attr("name")},
cache: false,
success: function(result){
$("#commandsCount").text(result);
}
});
});
});
이 컨트롤러 기능 :
[HttpPost]
public JsonResult AddCommandArtikelJson(int id, int id_priceOnPad)
{//my code
return Json(DateTime.Now);
}
나는 그것을하기 위해 노력하는 매우 멋진 idee 다, 당신에게 매우 감사한다 Luis –