【发布时间】:2013-09-05 12:01:42
【问题描述】:
在未安装 Quicktime 时,Windows 上的 Safari 5.1.7 不支持 video 元素上的 play()、pause() 等。
因此,我想检测它是否受支持。
jQuery('video').each(function(){
this.pause();
});
返回:TypeError: 'undefined' is not a function (evaluating 'this.pause()')
jQuery('video').each(function(){
if( <<I need a way to check if pause is in this>> ){
this.pause();
}
});
我正在寻找一种正确执行此操作的方法。任何帮助将不胜感激!
【问题讨论】:
标签: javascript html video safari