Common tasks of managing the DOM with vanilla JavaScript

栏目: IT技术 · 发布时间: 4年前

内容简介:Web development goes very fast. I still remember the moments when starting to useNowadays, even if our application is powered by mordern tools such as Angular, Vue, React, Svelte, .etc, we have to deal with DOM. The frameworks encapsulate and hide the DOM

htmldom.dev

Story

Web development goes very fast. I still remember the moments when starting to use jQuery , Prototype , script.aculo.us , Zepto and many more.

Nowadays, even if our application is powered by mordern tools such as Angular, Vue, React, Svelte, .etc, we have to deal with DOM. The frameworks encapsulate and hide the DOM management directly, but still give us a door to work with DOM via ref , event handlers .

If you develop or use a web component in any framework, you have to work with DOM at a certain level.

Knowing the browser DOM APIs and how to use them play an important role in web development. A website introducing the APIs, well-known problems, most popular questions could be very useful.

Features

  • No external library. Only native browsers' APIs
  • Small and easy to understand examples
  • Live demos
  • Many tips and good practices included
  • Many real use cases
  • Work with the modern browsers. Try to support IE 11

Common tasks of managing the DOM with vanilla JavaScript

Running it on local

  1. Clone the project:
$ git clone https://github.com/phuoc-ng/html-dom
  1. Install the dependencies:
$ cd html-dom
$ npm install
  1. Run it on the local:
$ npm run dev-server

Open http://localhost:1234 in your browser to see it in action.

Contributing

Pull requests are welcomed. If you see any problem with the example on your browser, please let me know by creating an issue or submit a pull request.

About

This project is developed by Nguyen Huu Phuoc . I love building products and sharing knowledge.

Be my friend on

Products

You might be interesting in my products:

Product Description
Blur Page A browser extension to hide sensitive information on a web page
CSS Layout A collection of popular layouts and patterns made with CSS
Fake Numbers Generate fake and valid numbers
Form Validation The best validation library for JavaScript
HTML DOM How to manage HTML DOM with vanilla JavaScript
React PDF Viewer A React component to view a PDF document

以上所述就是小编给大家介绍的《Common tasks of managing the DOM with vanilla JavaScript》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

程序员实用算法

程序员实用算法

Andrew Binstock、John Rex / 陈宗斌 / 机械工业出版社 / 2009-9 / 65.00元

《程序员实用算法》重点关注的是实用、立即可用的代码,并且广泛讨论了可移植性和特定于实现的细节。《程序员实用算法》作者介绍了一些有用但很少被讨论的算法,它们可用于语音查找、日期和时间例程(直到公元1年)、B树和索引文件、数据压缩、任意精度的算术、校验和与数据验证,并且还最全面地介绍了查找例程、排序算法和数据结构。 《程序员实用算法》结构清晰,示例丰富,可作为广大程序员的参考用书。一起来看看 《程序员实用算法》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

随机密码生成器
随机密码生成器

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具