gpt4 book ai didi

javascript - 检测脚本是否为 "already started"

转载 作者:行者123 更新时间:2023-11-29 23:57:53 26 4
gpt4 key购买 nike

通过设置 innerHTML 插入的脚本,以及调用 element.cloneNode(true) 等其他一些情况将生成具有内部“已启动”标志集的脚本为真。

The first is a flag indicating whether or not the script block has been "already started". Initially, script elements must have this flag unset (script blocks, when created, are not "already started"). The cloning steps for script elements must set the "already started" flag on the copy if it is set on the element being cloned.

Source: https://html.spec.whatwg.org/multipage/scripting.html#the-script-element

如果此内部标志已设置,则脚本将不会加载或执行。

有什么方法可以检测到这个标志设置在内部状态吗?

最佳答案

没有办法检测到这一点。

关于javascript - 检测脚本是否为 "already started",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41276774/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com