@7rabbit/ink-browser 中文文档教程
ink-browser
浏览器墨水
Introduction
Installation
npm install @7rabbit/ink
npm install @7rabbit/ink-browser
Illustration
这是一个 Hello World 示例。
import browser from '@7rabbit/ink-browser'
import Ink from '@7rabbit/ink'
let ink = new Ink()
ink.attachModule(browser)
下面的其余部分是一个 API 参考,记录了 ink-browser
附加到 ink
对象的每个方法。
ink.getHistoryNavigationEventType
ink.isHistoryTraversal
ink.waitUntilFontLoaded
ink.preventDefault
ink.attachScrollBlocker
ink.detachScrollBlocker
ink.isChrome
ink.isScrolledIntoView
ink.createBrowserAudio
ink.loadAudio
ink.attachCSSAnimation
ink.querySelector
ink.adjustHeightOffset
ink.click
ink.focus
ink.openWindow
ink.setDocumentTitle
ink.setGlobalStyleRule
ink.setGlobalStyleRules
ink.createDOMElement
ink.scrollToYOnWindow
ink-browser
Ink for the Browser
Introduction • Installation • Illustration
Introduction
Installation
npm install @7rabbit/ink
npm install @7rabbit/ink-browser
Illustration
This is a Hello World example.
import browser from '@7rabbit/ink-browser'
import Ink from '@7rabbit/ink'
let ink = new Ink()
ink.attachModule(browser)
The rest of what follows is an API reference documenting every method ink-browser
attaches to the ink
object.
ink.getHistoryNavigationEventType
ink.isHistoryTraversal
ink.waitUntilFontLoaded
ink.preventDefault
ink.attachScrollBlocker
ink.detachScrollBlocker
ink.isChrome
ink.isScrolledIntoView
ink.createBrowserAudio
ink.loadAudio
ink.attachCSSAnimation
ink.querySelector
ink.adjustHeightOffset
ink.click
ink.focus
ink.openWindow
ink.setDocumentTitle
ink.setGlobalStyleRule
ink.setGlobalStyleRules
ink.createDOMElement
ink.scrollToYOnWindow
更多