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.
在jQuery.getScript中调用 eval 之前是否有执行代码的钩子?
来自以下文档:$.getScript()
$.getScript()
这是一个简写的 Ajax 函数,相当于:
$.ajax({ url: url, dataType: "script", beforeSend: function ( xhr ) { // code to execute before query } });