如何自动触发fullcalendar的dayClick

时间:2016-05-04 13:58:38

标签: javascript jquery angularjs fullcalendar

module.android.js

并尝试触发 $scope.uiConfig = { calendar:{ height: 450, editable: true, header:{ left: 'title', center: '', //right: 'today prev,next' commented by dps for not to display today button center: 'prev,next', right: '' }, dayClick: function(view,jsEvent,date, allDay,event) { //if($scope.view=='agendaWeek')#fc-day fc-widget-content fc-M fc-past //{ //console.log(view); if (jsEvent.target.classList.contains('progress-day-time')) { //$("div").removeClass("fc-content-skeleton"); $(".fc-state-highlight").removeClass("fc-state-highlight"); //console.log(jsEvent.target); $(jsEvent.target).addClass("fc-state-highlight"); var day=new Date(view._d); DataDateFetch(view._d); } //} }, eventClick: $scope.alertOnEventClick, eventDrop: $scope.alertOnDrop, eventResize: $scope.alertOnResize, eventRender: $scope.eventRender, eventAfterAllRender: $scope.eventAfterAllRender } };

1 个答案:

答案 0 :(得分:1)

$(':checkbox').click(function() {
  if($(this).is(':checked')){
    alert('Checked');
  } else {}
}).click();
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <form>
    <input type="checkbox">
    <input type="checkbox">
    <input type="checkbox">
    <input type="checkbox">
  </form>
  
   
   
</body>
</html>

一点提示:)