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.
我有一段 JS 代码,我想加载到第三方网站(通过 chrome DOM)。我如何在不使用 jQuery的情况下解决这个问题(该页面已阻止导入任何 js 库)?
var script=document.createElement("script"); script.setAttribute("type", "text/javascript"); script.setAttribute("src", "http://www.example.com/your/script"); document.body.appendChild(script);