<div id="videobody" style="background:url(images/bg.jpg);background-size:contain;" width="1024" height="640" align="center">'</div>
if (videojs.getAllPlayers().length > 0) {
var myplayer = videojs('my-video');
myplayer.dispose();
}
var videourl = 'https://xxx.ddd.tv/xxx.m3u8';
$('#videobody').html('<video id="my-video" class="video-js" width="1024" height="640" controlslist="nodownload" disablePictureInPicture></video>');
var myplayer = videojs('my-video', {
controls: true, //是否显示控制条
//poster: 'xxx', //视频封面图地址
preload: 'auto',
au...
identify [1.6]
identify(element) -> id
如果 element 存在 id 属性,则返回 id 属性值,否则自动为元素生成一个唯一的 id,并返回该 id 值。
样例
初始的 HTML
<ul>
<li id="apple">apple</li>
<li>orange</li>
</ul>
JavaScript
$('apple').identify();
// -> 'apple'
$('apple').next().identify();
// -> 'anonymous_element_1'
最终的 HTML
<ul>
<li id="apple">apple</li>
<li id="anonymous_element_1">orange</li>
</ul>
...
hide
hide(element) -> HTMLElement
将 element 隐藏,并返回该元素。
样例
<div id="error-message"></div>
$('error-message').hide();
// -> 返回 HTMLElement (并且隐藏 div#error-message)
向后兼容性变更
在 Prototype 的先前版本中,可以传递任意数目的元素到 Element.toggle、Element.show 和 Element.hide 中,但在 1.5 版之后,这不再被支持。
但是你可以通过 Enumerables 实现类似的效果:
['content', 'navigation', 'footer'].each(Element.hide);
// -> ['content', 'navigation', 'footer']
// 并隐藏 #content, #navigation 和 #footer。
还有更好的方法:...
identify(element) -> id
如果 element 存在 id 属性,则返回 id 属性值,否则自动为元素生成一个唯一的 id,并返回该 id 值。
样例
初始的 HTML
<ul>
<li id="apple">apple</li>
<li>orange</li>
</ul>
JavaScript
$('apple').identify();
// -> 'apple'
$('apple').next().identify();
// -> 'anonymous_element_1'
最终的 HTML
<ul>
<li id="apple">apple</li>
<li id="anonymous_element_1">orange</li>
</ul>
...
hide(element) -> HTMLElement
将 element 隐藏,并返回该元素。
样例
<div id="error-message"></div>
$('error-message').hide();
// -> 返回 HTMLElement (并且隐藏 div#error-message)
向后兼容性变更
在 Prototype 的先前版本中,可以传递任意数目的元素到 Element.toggle、Element.show 和 Element.hide 中,但在 1.5 版之后,这不再被支持。
但是你可以通过 Enumerables 实现类似的效果:
['content', 'navigation', 'footer'].each(Element.hide);
// -> ['content', 'navigation', 'footer']
// 并隐藏 #content, #navigation 和 #footer。
还有更好的方法:
$('cont...
我们看一下如下的程序代码Test.java 以下是JAVA代码:【复制】
class Base { public Base newInstance() { return new Base(); } public Base newInstance2() { return new Base(); } } class Test extends Base { // 返回值不同 public Test newInstance() { return new Test(); } // 返回值相同 public Base newInstance2() { return new Test(); } } class Base { public Base newInstance() { return new Base(); } public Base newInstance2() { return new Base(); } } class Test extends Base { // 返回值不同 public Test newInstance() { return new Test(); } // 返回值相同 public Base newIns...
故障现象:一台AthlonXP 1600+/Seagate 40GB/256MB DDR/GeForce2 MX主机,在一次双硬盘对拷后,重新连接主硬盘并开机,机器提示找不到任何IDE设备,找不到硬盘也无法进入Windows XP。重启进入CMOS设置程序后,发现检测不到任何IDE设备。换另外硬盘也检测不到,怀疑是主板IDE口出现故障,但也不至于全部的IDE口都损坏了?继续检查,发现ATA/100硬盘线是Slave口接在硬盘上,于是更换为Master接口,开机恢复正常。 故障分析:此故障看似复杂,没有经验的菜鸟会误认为是硬件损坏,但这仅仅是因为IDE接线错误造成的,此类现象还经常发生在我们身边。有的朋友再挂硬盘时,因为没有及时更改跳线,也会出现...
类别:其它 -
硬件 查看:147
更新:2014-05-09