# jstool **Repository Path**: jiaoshou/jstool ## Basic Information - **Project Name**: jstool - **Description**: js tool 工具库 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-07-11 - **Last Updated**: 2022-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jstool js tool 工具库,总结了一些常用的函数,拿来就用,真香! ## js tool 工具库
.
├-- history 历史版本文件及文档(若当前目录没有文档可以看上一个版本的工具函数文档说明)
├-- MTool.min.js 工具库主文件,直接在项目里引入即可
└-- tool.md 工具函数文档详细说明
## js tool 使用
- 在 vue 项目引入方式:
```
import _m from "@/vendor/MTool.min";
```
根据上面方式引入之后即可直接使用:
```
methods: {
// 登录
login() {
let str = 'sdfsadfd.css';
let res = _m.cutSuffix(str);
console.log("🚀 ~ file: index6.html ~ line 28 ~ res", res)
}
}
```
- 在 传统的html 中引入方式:
```
```
根据上面方式引入之后即可直接使用:
```
```
## 工具库所有方法
移步至 history 目录下的对应版本查看 tool.md ,(若当前目录没有文档可以看上一个版本的工具函数文档说明)
### 仓库地址
[jstool](https://gitee.com/jiaoshou/jstool.git).