发布于 2015-07-03 00:32:00 | 118 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Vue.js 教程,程序狗速度看过来!

Vue.js 轻量级 JavaScript 框架

Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。


Vue.js 0.12.5 发布,更新内容如下:

改进

  • Transcluded components are now considered children of their host component.

  • props now have an alternative syntax that is more inline with other options' key-value based style:

    props: {  'prop-a': String, // type check constructor
      'prop-b': null, // accept any type
      'prop-c': { // object descriptor
        type: Number,
        required: true,    default: 100 // new: default value
      }
    }
  • props option objects can now also specify a default value, as seen in the above example.

  • Improved Boolean props handling:

    When a prop has explicit Boolean type specified

  • Improved watch option syntax. You can now use an Object to provide additional options to a watcher:

    watch: {
      someValue: {    handler: function () { /*...*/ }, // or use a method name string
        deep: true,
        immediate: true
      }
    }

Bugs 修复

  • Fixed cases where templates that contain only <content>, <component>, <partial> or a single component are ignored silently. The first three cases will now turn the instance into a fragment instance and render correctly; the last case will result in a warning.

  • Fixed the issue where a parent's registered partials are not available to its children.

  • #985 v-ref not cleared properly when a static component is torn down.

  • #987 v-if not working on element directives

  • #990 array.$remove() not returning the removed element

下载:https://github.com/yyx990803/vue/archive/0.12.5.zip

Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

支持的浏览器:https://saucelabs.com/u/vuejs



历史版本 :
Vue 2.5.12 和 2.5.13 发布,轻量级 JavaScript 框架
VueJS 2.5.0 "Level E" 发布,做了许多改进
Vue 2.4.2 发布,轻量级 JavaScript 框架
Vue 2.4.0 和 2.4.1 发布,轻量级 JavaScript 框架 
Vue 2.3.4 正式发布,轻量级 JavaScript 框架 
Vue 2.3.3 正式发布,轻量级 JavaScript 框架 
Vue 2.3.2 发布,轻量级 JavaScript 框架
Vue 2.3.0 正式发布,轻量级 JavaScript 框架
Vue 2.3.0-beta.1 发布,轻量级 JavaScript 框架
Vue 2.2.6 发布,轻量级 JavaScript 框架
Vue 2.2.5 发布,轻量级 JavaScript 框架
Vue 2.2.3 和 2.2.4 发布,轻量级 JavaScript 框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务