Office加载项使用什么浏览器/浏览器引擎? [英] What browser / browser engine do Office Add-ins use?

查看:238
本文介绍了Office加载项使用什么浏览器/浏览器引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我试图开始开发Office 365加载项(以前为Office应用程序),而我想知道Office在呈现应用程序时使用什么浏览器或浏览器引擎.我尝试使用JavaScript的navigator.appCodeNamenavigator.appName,但由于此处使该方法无用. Office加载项使用什么浏览器或引擎来呈现应用程序?

So I am trying to get started developing Office 365 Add-ins (previously Apps for Office), and I was wondering what browser or browser engine Office uses when it renders your app. I tried using JavaScript's navigator.appCodeName and navigator.appName, but due to the problem described here renders that method useless. What browser or engine do Office Add-ins use to render apps?

推荐答案

这取决于Office的使用位置.如果在Windows桌面上,则Office加载项使用Internet Explorer加载Office中的托管网页.对于iOS,它将依赖于本机WebView控件.如果在Office Online上,它将使用沙盒iframe,您可以在其中使用浏览器打开Office Online.

It depends on where Office is being used. If it's on Windows Desktop, Office Add-ins use an Internet Explorer to load the hosted webpage in Office. For iOS, it will rely on the native WebView control. If on Office Online, it will use a sandboxed iframe, in which ever browser you open Office Online with.

如果您要确定运行Office的浏览器,我相信嗅探用户代理字符串将对您有用.

If you're trying to determine the browser Office is running in, I believe sniffing the user agent string will work for you.

这篇关于Office加载项使用什么浏览器/浏览器引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆