We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38263f1 commit c67065bCopy full SHA for c67065b
layout/_partial/scripts/index.ejs
@@ -61,13 +61,8 @@
61
62
// 从 butterfly 和 volantis 获得灵感
63
loadScript: (src, opt) => new Promise((resolve, reject) => {
64
- // 判断是否存在
65
- let el = document.querySelector("script[src='" + src + "']")
66
- if (el !== null) {
67
- return
68
- }
69
- var script = document.createElement('script')
70
- script.src = src
+ var script = document.createElement('script');
+ script.src = src;
71
if (opt) {
72
for (let key of Object.keys(opt)) {
73
script[key] = opt[key]
0 commit comments