zoukankan      html  css  js  c++  java
  • 前端有用的web api 你知道几个?

    1.Fullscreen

    Fullscreen API提供了以全屏模式显示特定元素(及其子元素)的方法。有一个方法可以让我们在不需要全屏模式时退出该模式。不仅如此,当 DOM 元素转换到全屏模式或脱离全屏模式时,这个 API 还可以帮助执行任何操作

    https://demo.greenroots.info/web-apis/web-apis-fullscreen/

    2. Resize Observer API 

    https://demo.greenroots.info/web-apis/web-api-resize-observer/

    可以监听dom元素变化,替代resize

    3.Image Capture API

    可以调用授权摄像头并截取图片

    https://demo.greenroots.info/web-apis/web-apis-image-capture/

    4.Broadcast Channel API

    可以在一个浏览器窗口之间进行通信

    https://demo.greenroots.info/web-apis/web-apis-broadcast/

  • 相关阅读:
    Javascript
    CSS3新增特性HTML标签类型
    HTML5新增的标签
    prototype __proto__ Function
    oninput
    extend
    hasOwnProperty()
    this prototype constructor
    Array类型判断
    指针
  • 原文地址:https://www.cnblogs.com/sichaoyun/p/13686473.html
Copyright © 2011-2022 走看看