npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geile-common

v1.0.56

Published

一些常用的JS方法

Downloads

1

Readme

geile-common

介绍

JS常用方法,来自于前端多年经验积累

软件架构

集成了大量常用方法

安装教程

  1. npm install --save geile-common
  2. npm run serve

使用说明

1. indexOf,
2. contains,
3. append,
4. remove,
5. //event方法kuozhan
6. addEvent,
7. removeEvent,
8. // handleEvent,
9. // fixEvent,

10. client,
11. //扩展trim(),ltrim(),rtrim()去除字符串两端空格
12. trim,
13. //去除字符串中间空格
14. ctrim,
15. //扩展delHtmlTag()去除HTML标签及标签里面的文字
16. delHtmlTag,
17. //去除换行
18. clearBr,
19. //去除HTML标签
20. clearHtml,
21. //去除HTML标签及空格、换行
22. clearHtmlNS,
23. //去除HTML标签及空格(多个空格合并一个)、换行
24. clearHtmlNS1,
25. //去除HTML标签及换行
26. clearHtmlN,
27. //去除HTML标签保留空格、换行
28. clearHtmlExpSN,
29. //去除HTML标签所有属性
30. clearAttr,
31. //用~替换= 用^替换& 转码成微信跳转链接
32. enWxJumpLink,
33. //用=替换~ 用&替换^ 解码成微信跳转链接
34. deWxJumpLink,
35. //获取字符串中的数字
36. getNumber,
37. //是否为由数字组成的字符串
38. isDigitals,

39. pattern,
40. getOsVersion,
40. getAppVersion,
41. getIsAppVersionLastest,
42. getScrollPosition,
43. imgadapt,
44. imgchoose,
45. formatTime,
46. formatTimeStr,
47. stopDefault,
48. stopBubble,
49. getUrlParam,
50. getParameter,
51. getDirParam,
52. getStrParam,
53. getFileType,
54. getCHSLength,
55. cutCHSString,
56. isExitsFunction,
57. isExitsVariable,
58. hasClass,
59. getStrLen,
60. cutStrLen,
61. saWindowHeight,
62. saWindowWidth,

63. setCache,
64. getCache,
65. clearCache,
66. setSessionStorage,
67. getSessionStorage,
68. delSessionStorage,
69. setLocalStorage,
70. getLocalStorage,
71. delLocalStorage,
72. setCookie,
73. getCookie,
74. delCookie,
75. getsec,


76. getRandomNum,
77. getRandomStr,
78. getRandomStrWidthSpecialChar,

79. encodeBase64,
80. decodeBase64,
81. encodeUtf8,
82. decodeUtf8,
83. debounce,
84. throttle

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

我的相关

  • 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md