IOS中 new Date的兼容问题 var date =new Date("2016-05-31 08:00");这样写看起来没什么问题,安卓中也正常。但是在苹果手机中、Safari中就是NaN。兼容的写法就是var date =new Date("2016/05/31 08:00"); 还有
var date =new Date("2016-05-31 08:00");
这样写看起来没什么问题,安卓中也正常。但是在苹果手机中、Safari中就是NaN。
兼容的写法就是
var date =new Date("2016/05/31 08:00");
还有个问题,苹果手机,不能有毫秒
页面变图片
用html2canvas.js 插件
$("#share").on("click", function(event) {
html2canvas(document.getElementById('grade')).then(function(canvas) {
var image = new Image();
image.src = canvas.toDataURL();
document.body.appendChild(image);
$('#grade, #share').hide();
image.style.width = '100vw';
});
});
ie11中播放视频需要下载
用source播放视频得时候需要下载,改用video就行了
