Skip to content
a personal JavaScript library
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
docs
example
src
test
.babelrc
.eslintignore
.eslintrc.js
.gitignore
README.md
karma.conf.js
package.json

README.md

hg-jslibrary

Library of common JavaScript function

文档地址

Install

npm install hg-jslibrary

Usage

import f from "hg-jslibrary";

f.type(new Date()); // "Date"

如果你希望每个文件里都使用import引入,需如下配置

// webpack.config.js
module.exports = {
  ...
  plugins: [
   new webpack.ProvidePlugin({
      f: ['hg-jslibrary', 'default']
    })
  ]
}

Changelog

2018.3.14

v0.1.7 修复打包错误

2018.9.7

v0.1.6 添加 parseUrl 方法

2018.9.7

v0.1.4 添加文档

2018.8.24

v0.1.2 添加 getValInObj 方法

v0.1.1 添加 arrSort 方法

2018.8.23

v0.1.0 初始化项目

You can’t perform that action at this time.