@7rabbit/ink-browser 中文文档教程

发布于 5年前 浏览 19 项目主页 更新于 3年前















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



IntroductionInstallationIllustration




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

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文