litson / Vue-plugins

Plugins for Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Vue plugins

NOTE:

2016-01-25 修复了Vue 1.0.13 中冻结util属性导致功能不可用的问题。 Vuep 曝露方法从 Vue.util中迁移到 Vue.plugin 中

API

  • Vue.$
  • Vue.ajax
  • Vue.ajaxSetting
  • Vue.get
  • Vue.getJSON
  • Vue.post
  • Vue.loadFile
  • Vue.ready
  • Vue.plugin.each
  • Vue.plugin.noop
  • Vue.plugin.param
  • Vue.plugin.type

Vue.ajax

  
  // 同jQuery
  
  Vue.ajax(
    {
      type: 'post',
      data: {
        username: 'Kobe'
      },
      success: function( ajaxData ) { console.log( 'Do some staff...' ) },
      error  : function() { console.log( arguments ) }
    }
  )

bower

bower install vuep

About

Plugins for Vue


Languages

Language:JavaScript 96.2%Language:HTML 3.7%Language:CSS 0.1%