https://github.com/ufologist/weapp-commons-util
微信小程序通用工具库
https://github.com/ufologist/weapp-commons-util
util weapp wx
Last synced: 3 months ago
JSON representation
微信小程序通用工具库
- Host: GitHub
- URL: https://github.com/ufologist/weapp-commons-util
- Owner: ufologist
- License: mit
- Created: 2018-11-17T06:29:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T03:08:17.000Z (over 6 years ago)
- Last Synced: 2025-06-15T06:45:41.875Z (4 months ago)
- Topics: util, weapp, wx
- Language: JavaScript
- Size: 92.8 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# weapp-commons-util
[![NPM version][npm-image]][npm-url] [![Build Status][ci-status-image]][ci-status-url] [![Coverage Status][coverage-status-image]][coverage-status-url] [![changelog][changelog-image]][changelog-url] [![license][license-image]][license-url]
[ci-status-image]: https://travis-ci.org/ufologist/weapp-commons-util.svg?branch=master
[ci-status-url]: https://travis-ci.org/ufologist/weapp-commons-util
[coverage-status-image]: https://coveralls.io/repos/github/ufologist/weapp-commons-util/badge.svg?branch=master
[coverage-status-url]: https://coveralls.io/github/ufologist/weapp-commons-util
[npm-image]: https://img.shields.io/npm/v/weapp-commons-util.svg?style=flat-square
[npm-url]: https://npmjs.org/package/weapp-commons-util
[license-image]: https://img.shields.io/github/license/ufologist/weapp-commons-util.svg
[license-url]: https://github.com/ufologist/weapp-commons-util/blob/master/LICENSE
[changelog-image]: https://img.shields.io/badge/CHANGE-LOG-blue.svg?style=flat-square
[changelog-url]: https://github.com/ufologist/weapp-commons-util/blob/master/CHANGELOG.md[](https://npmjs.com/package/weapp-commons-util)
微信小程序通用工具库
## Example
```javascript
import {
appendUrl
} from 'weapp-commons-util';appendUrl('https://domain.com', {
a: 1,
b: 2
});
```## APIDoc
[ESDoc](https://doc.esdoc.org/github.com/ufologist/weapp-commons-util/)
* `util` - 工具函数
* `appendUrl`
* `checkUpdate`
* `getCssString`
* `getCurrentPageUrl`
* `getCurrentPageUrlParams`
* `getHttpResponseHeaderValue`
* `hasAuth`
* `invokePageMethod`
* `isGetPhoneNumberSuccess`
* `isGetUserInfoSuccess`
* `reloadCurrentPage`
* `wx` - 包装 wx 的方法
* `navigateBack`
* `navigateTo`
* `redirectTo`
* `switchTab`