# 快速开始
本节将介绍如何在项目中使用 xEditor 。
## 使用 CDN
通过 [https://unpkg.com/xeditor](https://unpkg.com/xeditor) 可以看到 EM-FE 最新版本的资源,也可以切换版本选择需要的资源,在页面上引入 js 和 css 文件即可开始使用:
```HTML
<!-- 引入 xEditor -->
<script src="https://unpkg.com/xeditor/dist/xeditor.min.js"></script>
```
## 示例
通过 CDN 可以快速使用 xEditor 写出一个示例,您可以复制下面代码或[在线预览](http://output.jsbin.com/qiqibif)。
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>xeditor</title>
<script src="https://unpkg.com/xeditor"></script>
</head>
<body>
<div id="xe" class="xe"></div>
<script>
var myEditor = new window.xEditor('#xe')
myEditor.create();
</script>
</body>
</html>
```
