Php ajax发送并返回mktime

Php ajax发送并返回mktime,php,jquery,ajax,Php,Jquery,Ajax,您好,我正在使用一个ajax函数从我的php文件中的脚本中获取goog day。。。它不起作用我不明白为什么, 请帮助我需要ajax不要每次在php日历中选择日期时都重新加载 我的HTML是 <p class="texte choixDate"></p> 谢谢你的帮助 只要使用datetime选择器就可以了 onClose: function () { $scope.isSelected = true; var iMonth = $("#

您好,我正在使用一个ajax函数从我的php文件中的脚本中获取goog day。。。它不起作用我不明白为什么, 请帮助我需要ajax不要每次在php日历中选择日期时都重新加载

我的HTML是

<p class="texte choixDate"></p>

谢谢你的帮助

只要使用datetime选择器就可以了

onClose: function () {
        $scope.isSelected = true;
        var iMonth = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
        var iYear = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
        $(this).datepicker('setDate', new Date(iYear, iMonth, 1));

    }
使用onClose函数调用ajax

$semaine = array("Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"); 
$mois=$_GET["mois"];
$jour=$_GET["jour"];
$annee=$_GET["annee"];

$moisAtester2= mktime(0,0,0,$mois,$jour,$annee);

$jourSem=$semaine[date("w",$moisAtester2)];
echo $jourSem;
onClose: function () {
        $scope.isSelected = true;
        var iMonth = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
        var iYear = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
        $(this).datepicker('setDate', new Date(iYear, iMonth, 1));

    }