问题描述
我在文档可以将焦点手动设置为元素.它应该支持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中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!