手动将焦点设置为< lockup> TVJS中的元素 [英] Manually setting focus to a <lockup> element in TVJS
问题描述
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'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.
The closes thing available is the autoHighlight
attribute which allows to focus on render some specific elements in certain positions.
这篇关于手动将焦点设置为< lockup> TVJS中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!