---
title: "Web Components"
author: "2008winstar"
date: "2014-12-14T16:59:56Z"
tags: []
categories: ["Web前端"]
slug: "web-components"
draft: false
lastmod: "2014-12-14T19:15:04Z"
id: 2166159
url: "https://2008winstar.iteye.com/blog/2166159"
---

Web Components是一系列前沿的规范，它使得：

1 构建组件（widgets）成为可能；

2 重用更为可靠

3 。。。

 

Web Components由四个模块组成：

Shadow DOM - 提供DOM和样式的封装

HTML Templates（HTML 模板） - 提供可复用的DOM元素作为脚手架

Custom Elements（自定义元素）- 扩展HTML已有的标签元素和DOM对象

HTML Imports （HTML 导入） - 使Web组件打包，分享、分发以及重用成为可能