@mobro/utils
A collection of tools which I use.
Last updated 4 months ago by mobro .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mobro/utils 
SYNC missed versions from official npm registry.

缘起

个人手写、收集的一些比较实用的工具方法
暂不支持umd方式引入

使用方式; 示例如下:

import { getUuid, debounce, getIn, Money } from '@mobro/utils';

// eg: 获取唯一标识id
getUuid(); // adc1ffd9-1ebe-4fcf-b658-4855e8b9057b

Money.toYuan(5689); // 56.89

使用API

Money

Query(操作地址参数)

  • get 获取地址栏指定参数或者所有参数;返回一个json
  • add url上添加参数
  • remove 删除url上的特定参数
  • getParams 拼接对象成为url参数字符串形式

MoDate(日期操作)

  • format 格式化日期时间

Current Tags

  • 2.0.14-beta.6                                ...           beta (16 days ago)
  • 2.0.12                                ...           latest (4 months ago)

17 Versions

  • 2.0.14-beta.6                                ...           16 days ago
  • 2.0.14-beta.4                                ...           4 months ago
  • 2.0.14-beta.3                                ...           4 months ago
  • 2.0.14-beta.2                                ...           4 months ago
  • 2.0.12                                ...           4 months ago
  • 2.0.11                                ...           4 months ago
  • 2.0.10                                ...           4 months ago
  • 2.0.9                                ...           4 months ago
  • 2.0.8                                ...           4 months ago
  • 2.0.7                                ...           4 months ago
  • 2.0.6                                ...           4 months ago
  • 2.0.5                                ...           4 months ago
  • 2.0.4                                ...           4 months ago
  • 2.0.3                                ...           4 months ago
  • 2.0.2                                ...           4 months ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 17
Last Day 0
Last Week 0
Last Month 10
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |