请参阅下面的代码。我想在<body>
<video id="myVideo" width="320" height="176" controls>
<source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
<source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm">
Your browser does not support HTML5 video.
</video>
<script>
var vid = document.getElementById("myVideo");
vid.addEventListener('loadedmetadata', function () {
this.currentTime = 30; // play from 30th second
this.volume = .1; // Just to not play loudly and scare everyone around
this.play();
}, false);
</script>
<p>Video courtesy of <a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p>
</body>
不相同时单独设置。{/ p>
我知道这段代码
lbProduct
可以设置它,但只有当它们全部相同时才能设置它。
如果它们不相同,我如何在Java代码中单独设置它们?
page.setAttribute("snProductList", rmProductList);