javascript 这些 window.external 调用是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11618772/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What do these window.external calls mean?
提问by samoz
I recently came across a JavaScript file in our source tree with lots of calls like
我最近在我们的源代码树中遇到了一个 JavaScript 文件,其中有很多调用,例如
window.external.getParameter()
window.external.createGUID()
window.external.readStringFromRegistry()
and so on and I'm really confused about it.
等等,我真的很困惑。
Are these somehow native calls to the Windows API? And where can I find more information about all the available window.external
namespace functions?
这些是对 Windows API 的本地调用吗?我在哪里可以找到有关所有可用window.external
命名空间函数的更多信息?
回答by Mike Sav
Have a look here... http://msdn.microsoft.com/en-us/library/ie/ms535246(v=vs.85).aspxfor info. I presume your site uses .NET?
看看这里... http://msdn.microsoft.com/en-us/library/ie/ms535246(v=vs.85).aspx了解信息。我认为您的网站使用 .NET?
Perhaps this will help too (possible duplicate): What is the use of window.external?
也许这也会有所帮助(可能重复):window.external 的用途是什么?
回答by 11684
Have a look here: http://help.dottoro.com/ljisswge.php. It is (in IE) a reference to the 'external' object (you don't say) or (in Firefox) to the 'sidebar' object.
看看这里:http: //help.dottoro.com/ljisswge.php。它是(在 IE 中)对“外部”对象(你没有说)或(在 Firefox 中)对“边栏”对象的引用。