1.获取当前月份第一天
var date = new Date(); var year = date.getFullYear(); var month = date.getMonth() + 1; var nowDate = date.format("yyyy-MM-dd"); if (month <= 9) { month = "0" + month; } var beginDateValue = year + "-" + month + "-01";
2.Jquery的for循环
$.each(obj.bank, function (i) { $('#bankSelect').append("<option value='" + bank[i].bankId + "'>" + bank[i].bankName + "</option>") });
3.BootStrap 分页栏放上方
paginationVAlign: 'top'
4.刷新日期控件
$('#afterTransDateDiv').datetimepicker('update');