# VueJS [![Build Status](https://travis-ci.org/yyx990803/vue.png?branch=master)](https://travis-ci.org/yyx990803/vue)
> Simple, fast, modular & lightweight MVVM library for building interactive user interfaces.
## Features
- 10kb gzipped, no dependency.
- DOM based templates with two-way data binding.
- Precise and efficient DOM manipulation with granularity down to a TextNode.
- POJSO (Plain Old JavaScript Objects) Models that can be shared across ViewModels with arbitrary levels of nesting.
- Auto dependency tracking for expressions and computed properties.
- Auto event delegation on repeated items.
- Flexible API that encourages composition of components.
- Extendable with custom directives and filters.
- Supports partials, transitions and nested ViewModels.
- Plays well with module systems. Primarily [Component](https://github.com/component/component) based, but can also be used with [Browserify](https://github.com/substack/node-browserify), as a CommonJS/AMD module or as a standalone library.
## Browser Support
- Most Webkit/Blink-based browsers
- Firefox 4+
- IE9+ (IE9 needs [classList polyfill](https://github.com/remy/polyfills/blob/master/classList.js) and doesn't support transitions)
## Installation
**Component**
``` bash
$ component install yyx990803/vue
```
**Browserify**
``` bash
$ npm install vue
```
**Bower**
``` bash
$ bower install vue
```
**Module Loaders, e.g. RequireJS, SeaJS**
Built versions in `/dist` or installed via Bower can be used directly as a CommonJS or AMD module.
**Standalone**
Simply include a built version in `/dist` or installed via Bower with a script tag. `Vue` will be registered as a global variable.
## Development
``` bash
# in case you don't already have them:
# npm install -g grunt-cli component
$ npm install
$ component install
```
To build:
``` bash
$ grunt build
```
To watch and auto-build dev version during development:
``` bash
$ grunt watch
```
To test (install [CasperJS](http://casperjs.org/) first):
``` bash
$ grunt test
```
## Quickstart
**HTML**
~~~ html
<div id="demo" v-on="click:changeText">
<p v-text="hello"></p>
</div>
~~~
**JavaScript**
~~~ js
new Vue({
el: '#demo',
scope: {
hello: 'Hello World!',
changeText: function () {
this.hello = 'Hello VueJS!'
}
}
})
~~~
## Documentation
Coming soon...
## License
MIT
## 仓库
https://github.com/vuejs/vue
没有合适的资源?快使用搜索试试~ 我知道了~
vue-0.7.0.zip
共100个文件
js:65个
html:17个
json:5个
需积分: 0 0 下载量 197 浏览量
2024-08-22
08:54:41
上传
评论
收藏 173KB ZIP 举报
温馨提示
vue源码
资源推荐
资源详情
资源评论
收起资源包目录
vue-0.7.0.zip (100个子文件)
base.css 9KB
mocha.css 4KB
cover.css 956B
style.css 396B
.gitignore 115B
index.html 4KB
repeated-items.html 3KB
transition.html 3KB
nested-props.html 3KB
extend.html 3KB
nested-vms.html 2KB
runner.html 2KB
expression.html 2KB
template.html 2KB
nested-repeat.html 1KB
share-data.html 1KB
forms.html 1KB
index.html 1KB
validation.html 1KB
repeated-vms.html 1KB
simple-dir.html 952B
routing.html 952B
chai.js 112KB
mocha.js 111KB
vue.js 85KB
vue.min.js 30KB
api.js 27KB
directives.js 21KB
compiler.js 18KB
observer.js 18KB
directive.js 14KB
viewmodel.js 14KB
todomvc.js 11KB
observer.js 8KB
transition.js 8KB
utils.js 8KB
repeat.js 6KB
directive.js 6KB
base.js 6KB
utils.js 5KB
filters.js 4KB
exp-parser.js 4KB
main.js 4KB
viewmodel.js 4KB
binding.js 4KB
transition.js 4KB
model.js 4KB
exp-parser.js 3KB
cover.js 3KB
repeated-items.js 3KB
app.js 3KB
Gruntfile.js 2KB
on.js 2KB
classList.js 2KB
filters.js 2KB
release.js 2KB
benchmark.js 2KB
expression.js 2KB
transition.js 2KB
text-parser.js 2KB
nested-props.js 2KB
index.js 2KB
binding.js 2KB
if.js 1KB
app.js 1KB
deps-parser.js 1KB
nested-repeat.js 1KB
deps-parser.js 1KB
extend.js 1012B
repeated-vms.js 976B
forms.js 926B
nested-vms.js 879B
size.js 837B
routing.js 822B
component.js 772B
emitter.js 646B
casper.js 638B
share-data.js 637B
validation.js 636B
mockEvent.js 598B
jsc.js 584B
text-parser.js 568B
simple-dir.js 530B
template.js 478B
validators.js 472B
store.js 382B
config.js 178B
.jshintrc 544B
.jshintrc 248B
component.json 867B
package.json 792B
.bower.json 400B
bower.json 217B
bower.json 53B
LICENSE 1KB
README.md 2KB
readme.md 100B
.npmignore 151B
bg.png 2KB
.travis.yml 311B
共 100 条
- 1
资源评论
a3737337
- 粉丝: 0
- 资源: 2869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功