请查看我正在制作的网页https://preview.c9.io/tomheaps/enharmonic/Website/enharmonic_calendar.html?_c9_id=livepreview2&_c9_host=https://ide.c9.io,其中包含嵌入式谷歌日历,使用jquery插件FullCalendar设计样式.
正如您将看到的,当您单击月视图时,标题显示不正确,两个日期之间有一些奇怪的字符,并显示"2015年6月1日",而不是"2015年6月1日 - 7月7日".
我不确定这是否发生,因为我使用Open Sans作为此标题的字体,它不包含由javascript自动插入的字形?
任何人都可以想到一个允许我仍然使用Open Sans的解决方法吗?
我正在尝试将'y的页码x'添加到使用jspdf和jspdf-autotable生成的PDF中。我已经使用了jspdf-autotable示例站点上的examples.js文件中的代码,还使用了该网站中包含putTotalPages函数的jspdf.debug.js文件。
我在每一页上得到的结果是第一页上的“ {total_pages_count_string}的第1页”和第二页上的“ {total_pages_count_string}的第2页”,即total_pages_count_string似乎未正确更新。
我的整个代码如下:
$('#print').click(function() {
$('#html-table table').remove();
var table = $("#amu-whiteboard").tabulator("getHtml");
$('#html-table').append(table);
$('#html-table>table').attr("id", "table");
$('#table th:not(:nth-child(1), :nth-child(2)), #table td:not(:nth-child(1), :nth-child(2))').remove();
var columns = ["Bed", "Name", "Diagnoses", "Jobs"];
var doc = new jsPDF('l', 'pt');
doc.setFont('Helvetica', 'normal');
doc.setTextColor(40);
var dateTime = moment().format('HH:mm on MMMM Do, YYYY');
var printedOn = "Printed at " + dateTime;
var totalPagesExp = "{total_pages_count_string}";
var pageContent = function(data) {
doc.setFontSize(14);
doc.text(21, 30, "AMU Handover Sheet");
doc.setFontSize(10);
doc.text(printedOn, doc.internal.pageSize.width / 2, 30, 'center');
var str = "Page …Run Code Online (Sandbox Code Playgroud)