作为标题,我无法获得 DOM 属性,jQuery.attr()
但可以通过. 获得属性document.attrbute
。如何解决?
console.log($("#video01").attr('readyState'));
console.log($("#video01")[0].readyState);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<video id='video01' src="http://cloud.video.taobao.com/play/u/2554695624/p/1/e/6/t/1/fv/102/28552077.mp4" autoplay=""></video>