Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在不刷新页面的情况下在 DIV 块中重新加载 JavaScript?
谢谢!
您可以评估 javascript,例如在字符串中
var script = "...";
通过调用 eval 函数
eval(script);