我有以下代码:
organization.html.erb
<div class="phonechart">
<h3>Phone</h3>
<%= line_chart @organization.statistics.with_kind(:phone).group_by_day(:created_at, range: Time.new(2016)..Time.new(2017)).count %>
</div>
和
organization.js
function init_statistics_features() {
$('#datetimepicker8').datetimepicker({
}).on('dp.change', function(e){
});
$('#enddate').datetimepicker({
}).on('dp.change', function(e){});
}
如何使用datetimeficker动态更改日期?