Skip to content

wont-org/utils

Repository files navigation

Check Status Npm Publish Deploy gh-pages

Install

按需引入

import { getUrlParam } from '@wont/utils'

getUrlParam('id', 'http://localhost:8088/#/index?type=hash&id=8080&index=0') // 8080

script

unpkg收录,遵循 umd 规范,不支持tree shaking

<script src="https://unpkg.com/@wont/utils" type="text/javascript"></script>

<script>
  window.onload = function () {
    wontUtils.getUrlParam(
      'id',
      'http://localhost:8088/#/index?type=hash&id=8080&index=0'
    ) // 8080
  }
</script>

Links

LICENSE

MIT

About

@wont/utils is javascript library, written whith typescript. supporting browser and node.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •