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.
我需要设置jNotify或类似的插件,以便它显示警报,很简单。我的问题是如何仅使用一个文件跨多个域执行此操作。
我的目标是让一个 jNotify 警报文件启用/禁用,但在 5 个网站上使用。
有没有人可以分享任何建议?
谢谢
使用绝对 url 包含您的文件
<script type="text/javascript" src="http://www.yourserver.com/jsfile.js"/>