mssaveblob in ie 11不能始终如一地工作 [英] mssaveblob in ie 11 not working consistently

查看:132
本文介绍了mssaveblob in ie 11不能始终如一地工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在MSDN上获取了示例代码,并根据我的目的略微调整了它(我的代码如下)。当我在Windows 8.1框(IE 11,v11.0.9600.17905)上执行IE 11中的代码时,它有时会工作(我得到提示保存,我的文件显示在DOWNLOADS中)。
然而,在没有改变ANYTHING的情况下,我再次运行它并且它出错(mssaveblob返回TRUE),但是,没有发生保存并且代码完成。在运行带有IE 11(v11.0.9600.17959)的Windows 7的另一个盒子上,它永远不会成功。调试器向我显示
,一切正常,没有FALSE返回任何内容。只是,没有档案。我很有智慧。

I have taken the sample code on MSDN and adapted it slightly for my purpose ( my code below). When I execute the code in IE 11 on my Windows 8.1 box (IE 11, v11.0.9600.17905), it works sometimes (i get the prompt to save, and my file appears in DOWNLOADS). However without changing ANYTHING at all, I run it again and it gets on error (the mssaveblob returns TRUE), however, no save occurs and the code completes. On another box running Windows 7 with IE 11 (v11.0.9600.17959), it never succeeds. Debugger shows me that everything is working and no FALSE returns in anything. Just, no file. I am at wits end.

推荐答案

f12> ; Emulation选项卡,显示浏览器正在使用的documentMode(仿真模式)。

f12>Emulation tab, shows you what documentMode (Emulation Mode) the browser is using.

file> Properties菜单显示域映射到的IE安全区域。

file>Properties menu shows you which IE security zone the domain is mapped to.

结果将根据您的Web服务器域映射到哪个IE安全区域或者您是否从文件系统和IE设置运行html文件而有所不同。

Outcomes will vary depending on which IE security zone your web server domain maps to or whether you are running a html file from the file system and your IE settings.

如果您正在开发面向公众的网站,在网络服务器上进行测试/开发(天蓝色?),而不是PC的硬盘。

IF you are developing a public facing website, test/develop on a web server (azure?), not your PC's hard disk.

问候。


这篇关于mssaveblob in ie 11不能始终如一地工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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