油猴引入jquery提示$ is not deifined
解决方案声明
```
/* globals$ */
```
如
```
// ==UserScript==
// @name New Userscript
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @descriptiontry to take over the world!
// @author You
// @match {{match}}
// ==/UserScript==
/* globals$ */
``` 下版本加一下自定义eslint https://bbs.tampermonkey.net.cn/forum.php?mod=redirect&goto=findpost&ptid=2809&pid=31571
或者直接定义$
如果是油猴单独引入无论是否沙盒都可以直接用`const $=window.jQuery` steven026 发表于 2022-11-26 21:36
https://bbs.tampermonkey.net.cn/forum.php?mod=redirect&goto=findpost&ptid=2809&pid=31571
或者直 ...
woc get dao le 李恒道 发表于 2022-11-26 21:37
woc get dao le
人懒惰起来,会不顾一切
页:
[1]