Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/layouwen/dom-yw

Simple encapsulation of the DOM API. 对 DOM API 的简易封装
https://github.com/layouwen/dom-yw

api dom learn

Last synced: 2 days ago
JSON representation

Simple encapsulation of the DOM API. 对 DOM API 的简易封装

Awesome Lists containing this project

README

        

# Dom Yw

English | [中文](./README_zh-CN.md)

## Introduction

A wrapper for the native DOM API to simplify operations, intended only for learning purposes. It is not supported in production environments.

## Usage

```javascript
const dom = dyw.create("

Avan
")
//
Avan

dyw.after(dom, "

Dom
")
//
Avan
Dom

dyw.before(dom, "

Yw
")
//
Yw
Avan
Dom

dyw.append(dom, "inner")
//

Yw
Avan
Dom
inner

dyw.wrapper(dom, "")
//

Yw
Avan
Dom
inner
```

[See more](./src/dyw.js)

## Contact Me

[Github](https://github.com/Layouwen)