本文介绍了手动将焦点设置为< lockup> TVJS中的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我在文档可以将焦点手动设置为元素.它应该支持DOM Element类,但是当我这样做的时候

I can't find any method in the Documentation to manually set the focus to an element.It is supposed to support the DOM Element class, but when i do

var elem = ele.ownerDocument.getElementById("start");
elem.focus();

它什么都不做. elem已正确设置,但无法识别focus()方法.

it does nothing. elem is correctly set, but it doesn't recognize the focus() method.

推荐答案

Apple的TVJS框架在其类中没有提供任何方法来手动聚焦元素.

Apple's TVJS Framework doesn't provide any method in his classes to manually focus an element.

它所包含的标准文档对象模块类中都没有任何一种可以直接访问DOM并聚焦元素的方法.

Neither in the standard Document Object Module classes it incorporates have any kind of method to directly access the DOM and focus an element.

可用的关闭项是 autoHighlight属性,该属性可以专注于在某些位置渲染某些特定元素.

The closes thing available is the autoHighlight attribute which allows to focus on render some specific elements in certain positions.

这篇关于手动将焦点设置为< lockup> TVJS中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 07:22