Rob W (Rob W)

年加入本站
Rob W

最近在 Docs 的活動

檢視所有活動
頁面 日期 回應

storage.onChanged


Declare variable in sample code to avoid leaking variables to the global scope (or errors in strict mode).

Element.insertAdjacentElement()


See also: insertAdjacent(Element|HTML), insertBefore/appendChild

Element.insertAdjacentHTML()


See also: insertAdjacent(Element|Text), removed insertBefore/appendChild (those are not equivalent, will move these references to insertAdjacentElement).

Element.insertAdjacentText()


See also: insertAdjacentHTML

for...of


Generators should not be reused. This was not documented anywhere, so the code that I wrote for Firefox broke in Chrome (IteratorClose - see bugzil.la/1147371)