admin管理员组

文章数量:1558050

Dplayer是调用HTML5的video标签调用原生播放器,video可以兼容IE9以上浏览器,但是Dplayer使用了仅支持IE11以上才支持的dataset属性,所以在IE10会有兼容问题,解决方法是增加dataset的兼容处理。

(function datasetModule(global, definition) { // non-exporting module magic dance

'use strict';

var

amd = 'amd',

exports = 'exports'; // keeps the method names for CommonJS / AMD from being compiled to single character variable

if (typeof define === 'function' && define[amd]) {

define(function definer() {

return definition(global);

});

} else if (typeof module === 'function' && module[exports]) {

module[exports] = definition(global);

} else {

definition(global);

}

}(this, function datasetPolyfill(global) {

'use strict';

本文标签: 播放器dplayer