Skip to content

[html] 第95天 HTML5标准提供了哪些新的API?你有用过哪些? #958

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第95天 HTML5标准提供了哪些新的API?你有用过哪些?

Activity

l8888888

l8888888 commented on Jul 20, 2019

@l8888888

两个选择器API
地理定位API
多媒体API
拖放API
文件API
XHR2
本地储存API
canvas svg

NicholasBaiYa

NicholasBaiYa commented on Jul 20, 2019

@NicholasBaiYa

画布
本地存储
多媒体
定位

git710

git710 commented on Jul 20, 2019

@git710
  • 两个选择器API
    • document.querySelector()
    • document.querySelectAll()
  • 地理定位API
    • getCurrrentPosition()
  • 多媒体API
    • <video></video>
    • <audio></audio>
  • 拖放
<div ondrop="drop(event)" ondragover="allowDrop(event)"></div>
<div draggable="true" ondragstart="drag(event)"></div>
  • 文件
    window.requestFileSystem()
  • XHR2
var xhr = new XMLHttpRequest();
xhr.open("POST", "@Url.Action("Upload")")
  • 本地存储API
    • localStorage
    • sessionStorage
  • canvas
<canvas id="myCanvas" width="200" height="100">
  • svg
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
   <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
</svg>
Drowned-fish

Drowned-fish commented on Jul 24, 2019

@Drowned-fish

通知API, Notification

zhaofeipeter

zhaofeipeter commented on Jul 31, 2020

@zhaofeipeter

fetch/ file API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@zhaofeipeter@NicholasBaiYa@Drowned-fish@git710

        Issue actions

          [html] 第95天 HTML5标准提供了哪些新的API?你有用过哪些? · Issue #958 · haizlin/fe-interview