tips:请确保安装版本>=1.1.8,在此之前的版本未为方法添加测试,同时未添加主体方法和类型声明,同时限制了包管理器
前端开发日常使用的一些方法,持续收集中...
这个项目使用 node 和 npm。请确保你本地安装了它们。
npm install @supuwoerc/utils --save
yarn add @supuwoerc/utils
pnpm add @supuwoerc/utils
点击访问:方法文档-来自TypeDoc
import { getElementSelector } from "@supuwoerc/utils"
console.log(getElementSelector(document.body)) // 'html > body'
非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。
MIT © Supuwoerc