如何从从<head>内的<script>标签加载的脚本请求中获取jqXHR对象
How to get jqXHR object from script request that is loaded from <script> tag inside <head>
jQuery的getScript((在加载脚本时返回jqXHR对象。当脚本从放置在 head 标签内的脚本标签加载时,有没有办法获取 jqXHR 对象?
function makeScript(url){
script = document.createElement("script");
script.src = url;
//when this line is executed the script will be loaded by the browser
//how to get the jqxhr object
document.head.appendChild(script);
}
不,因为没有。浏览器以本机方式处理所有内容。
相关文章:
- Javascript-如何让脚本与Ajax请求的数据一起运行
- 是否可以通过Chrome扩展内容脚本打开Chrome外部协议请求
- 如何使用java脚本或jquery发送跨域SOAP请求
- jQuery没有在ajax请求的脚本标记中加载js文件
- 如何在 Postman 中的预请求脚本中计算 md5 哈希
- [XSS]Expressjs 阻止从 POST 请求运行脚本
- 使用Java脚本跟踪网页中是否有Ajax请求,或者通过Selenium Web驱动程序拦截XMLHttpRequest
- 当我们打开ADF应用程序的同一网页的不同版本时,如何让浏览器请求java脚本
- 带有ajax xml请求的Node js脚本不起作用
- 异步HTTP(ajax)请求在脚本标记中有效,但在js文件中无效
- 如何从从内的