https://github.com/moodrain/rium
約束の歌を連れて
https://github.com/moodrain/rium
Last synced: 3 months ago
JSON representation
約束の歌を連れて
- Host: GitHub
- URL: https://github.com/moodrain/rium
- Owner: moodrain
- Created: 2020-06-13T02:19:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T07:40:36.000Z (over 4 years ago)
- Last Synced: 2025-01-13T18:18:31.094Z (5 months ago)
- Language: JavaScript
- Homepage: https://s1.moodrain.cn/lib/rium/index.js
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rium
約束の歌を連れて| Function | Note |
| ------------ | ------------ |
| $e(id) | get element by id |
| $query(name) | get query parameter from url by name |
| $to(url, query, reset = false) | go to url with query parameter, origin query parameter will be ignored if reset is true
| $reset() | refresh current page and remove all query parameter
| $submit(url, data) | submit a form to url with data
| $obj2Url(obj) | convert an object to the query parameter of url
| $fet(url, data, method = 'get') | use fetch to return a promise to handle json response
| $ck(name, value, second) | get or set a cookie
| $date(date) | return date format like 2020-01-01
| $time(date) | return time format like 00:00:00
| $enter(callback) | bind a callback to document enter key down event
| $toTop(btn, elem) | bind a smooth to top action to element click event
| $pullToLoad(elem, callback, distance) | callback will be called when element scroll to bottom
| $base64() | get Base64 tool object
| $encodeBase64(str) | base64 encode
| $decodeBase64(base64) | base64 decode
| $bindVue(vue) | bind all function above to vue prototype