小步 app vue 项目 js 工具类
# install
npm install vue-xiaobu-utils
注意:本工程使用d.ts文件进行提示,请安装typings并导入index.d.ts
/// <reference path="../node_modules/vue-xiaobu-utils/src/plugins/nativePlugin.d.ts" />
import ajaxAsync from 'vue-xiaobu-utils'
// ajaxAsync为默认输出
ajaxAsync('path', sendObj)
import { ajaxAsync, getUrlParams, go } from 'vue-xiaobu-utils'
ajaxAsync('path', sendObj)
getUrlParams()
go('path')
import { nativePlugin } from 'vue-xiaobu-utils'
Vue.use(nativePlugin, {
platform: true
})
this.$UI.then(ui => {
// ui.
ui.showDialog('1111', '22222222222', '3333', '44444', data => {}, () => {})
})
注意:更多方法请参考index.js或index.d.ts
For detailed explanation on how things work, consult the docs for vue-loader.