= new Date(); // Initiate a new date object
var day = date.getDate(); // Gets the current dayday = (day.length < 2) ?day : '0' + day; // This will add 0 before the
我在Rails中实现了一个基本的AJAX调用,它可以很好地执行以下操作:<a href="/days/new" data-remote="true" id="new_day_ajax">Add This day</a>$('#new_day_ajax').hide().after('<%= j rend