在响应式日历中添加动态月份


Add Dynamic Month in Responsive Calendar

我正在尝试为我的网站制作一个响应日历,我使用的脚本是

 <script type="text/javascript">
  $(document).ready(function () {
    $(".responsive-calendar").responsiveCalendar({
      time: '2015-12',
      events: {
        "2015-12-18": {},
        "2015-12-21": {},
        "2015-12-23": {}
        }
    });
  });
</script>

我试图通过PHP将动态月份放在其中,并在脚本中进行以下更改

time: '<?php echo('Y-m'); ?>',

但它没有返回任何

尝试替换为:

time: '<?php echo date("Y-m"); ?>'