MyGit

x-extends/vxe-utils

Fork: 4 Star: 7 (更新于 2024-05-28 01:30:53)

license: MIT

Language: JavaScript .

🌵 用于 Vue 全局安装 xe-utils

最后发布版本: 2.0.1 ( 2020-09-10 18:54:22)

GitHub网址

vxe-utils

gitee star npm version npm build npm downloads gzip size: JS npm license

用于 Vue 全局安装 xe-utils

Installing

npm install xe-utils vxe-utils
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
<script src="https://cdn.jsdelivr.net/npm/vxe-utils"></script>

Example

Run this demo on jsfiddle.net

import Vue from 'vue'
import XEUtils from 'xe-utils'
import VXEUtils from 'vxe-utils'

Vue.use(VXEUtils, XEUtils, { mounts: ['cookie'] })
<template>
  <h1>{{ userName }}</h1>
  <div>{{ $utils.toDateString(startDate, 'yyyy-dd-MM HH:mm:ss') }}</div>
  <div>{{ endDate }}</div>
</template>
<script>
export default {
  data () {
    return {
      userName: null,
      startDate: new Date(),
      endDate: null
    }
  },
  created () {
    this.userName = this.$cookie('U_NAME')
    this.endDate = this.$utils.toDateString(new Date(), 'MM/dd/yyyy HH:mm:ss.SSS')
  }
}
</script>

License

MIT © 2017-present, Xu Liangzhan

最近版本更新:(数据更新于 2024-05-07 06:43:24)

2020-09-10 18:54:22 2.0.1

2020-06-26 17:11:45 2.0.0

2020-05-23 18:08:34 1.9.3

2020-05-23 18:08:19 1.9.2

2020-05-23 18:08:05 1.9.1

2020-05-23 18:07:52 1.9.0

2019-12-22 16:06:41 1.8.0

2019-08-30 23:45:04 1.7.2

2019-08-24 15:23:25 1.7.1

2019-08-23 19:44:35 1.7.0

主题(topics):

xe-utils

x-extends/vxe-utils同语言 JavaScript最近更新仓库

2024-07-04 07:31:29 vercel/next.js

2024-06-25 20:14:46 projectdiscovery/nuclei-templates

2024-06-22 08:38:28 sveltejs/svelte

2024-06-20 17:48:22 4ian/GDevelop

2024-06-18 06:07:40 langflow-ai/langflow

2024-06-15 01:21:11 serverless/serverless