-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]js依赖不能使用,存在问题。 #190
Comments
我又测在另一个脚本单独引入一个是可以正常使用。但我引入多个就不行了?有点奇怪。 |
又经过测了谷歌网站,没问题。可能是百度的问题,不清楚为啥不可以在百度上运行,请排查一下 |
关于引入那里,有完整的示例么? 我现在先看看该脚本在百度上的运行情况 |
以下一个例子。在tampermonkey中可以正常运行。 // ==UserScript==
// @name 测试引入js
// @namespace http://tampermonkey.net/
// @version 1.1.1
// @description 测试js
// @author 夜雨
// @match *://*/*
// @run-at document-end
// @require https://cdn.staticfile.org/jquery/3.4.0/jquery.min.js
// @require https://cdn.bootcdn.net/ajax/libs/marked/4.3.0/marked.min.js
// @require https://cdn.bootcdn.net/ajax/libs/markdown-it/13.0.1/markdown-it.min.js
// @require https://cdn.bootcdn.net/ajax/libs/showdown/2.1.0/showdown.min.js
// @require https://cdn.bootcdn.net/ajax/libs/highlight.js/11.7.0/highlight.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js
// @require https://cdn.bootcdn.net/ajax/libs/KaTeX/0.16.4/katex.min.js
// @license MIT
// ==/UserScript==
(function(){
let pt = CryptoJS.AES.encrypt(JSON.stringify({data:"测试"}),'806.i4.dds764&65eyeadnf').toString()
console.log(pt)
new showdown.Converter();
})(); |
示例问题修复了,但是脚本依旧无法使用,我使用tampermonkey在百度中好像也有问题 |
百度中无法使用是我的广告屏蔽插件导致的,关闭都可以正常使用了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我引入
不能够直接使用CryptoJS,提示不存在。但在tampermonkey管理器是可以使用的。看了你网站api文档并没有说什么,还是说要别的引入方法呢?
The text was updated successfully, but these errors were encountered: