我已使用 webbrowser 控件将 ac# 应用程序内的浏览器“升级”到 IE 11。
当我将网页加载到 IE 11 浏览器时,地图上的一切都正常工作。
当我在 c# 应用程序中时,除了我无法单击地图并拖动它之外,所有内容都加载没有错误。
我的所有地图点击事件也不会触发。
我可以使用箭头键移动地图,滚轮鼠标也可以。
我注意到,当我本机使用 IE 11 并使用带有“中断所有异常”的开发人员工具时,在检查是否支持 PointerEvent.HAS_BUTTONS 时,我在 ol3 中收到错误,指出对象不支持此操作。
错误位于 ol-debug.js 的第 44619 行,使用 ol-3.4.0
注意:是的,我已经为应用程序名称的 32 位和 64 位密钥以及应用程序的 vhost.exe 版本的 browser_emulation 设置了正确的注册表值。
更新:
我还应该注意,如果我使用
map.on('click', function(e) {
//do stuff
});
Run Code Online (Sandbox Code Playgroud)
没有任何东西被触发...但是,如果我使用 jquery 并执行
$(map.getViewport().on('click', function(e) {
//do stuff
});
Run Code Online (Sandbox Code Playgroud)
...然后我的点击事件起作用...
javascript c# webbrowser-control internet-explorer-11 openlayers-3
我有两个使用 asp .net 构建的网站。在一个网站中,我正在创建一个名为 count 的本地存储变量。在我的另一个应用程序中,我无法访问这个本地本地存储变量。两个网站都是基于 HtML 5 的。
是否有任何方法也可以访问另一个站点中的本地存储变量。
提前致谢!!
我有一个用 Aurelia 编写的应用程序,它需要在 IE11 中运行。
直到上周该应用程序运行正常,但现在当我尝试运行它时,我在控制台中收到以下错误
TypeError: Object doesn't support property or method 'entries'
Run Code Online (Sandbox Code Playgroud)
我不知道是什么原因造成的。我已经回到一个月前的提交,该应用程序肯定可以在 IE11 中运行,但我遇到了同样的错误。
我们Yarn用于包管理Webpack
完整的堆栈转储是:
{
[functions]: ,
__proto__: { },
__symbol:__symbol:rxSubscriber0.6484791277649529: undefined,
__symbol:hasInstance0.64847912776495296: undefined,
__symbol:isConcatSpreadable0.64847912776495297: undefined,
__symbol:iterator0.64847912776495291: undefined,
__symbol:match0.64847912776495292: undefined,
__symbol:replace0.64847912776495293: undefined,
__symbol:search0.64847912776495294: undefined,
__symbol:species0.64847912776495299: undefined,
__symbol:split0.64847912776495295: undefined,
__symbol:toPrimitive0.648479127764952910: undefined,
__symbol:toStringTag0.648479127764952911: undefined,
__symbol:unscopables0.64847912776495298: undefined,
description: "Object doesn't support property or method 'entries'",
message: "Object doesn't support property or method 'entries'",
name: "TypeError",
number: -2146827850,
stack: "TypeError: Object doesn't support property or method …Run Code Online (Sandbox Code Playgroud) 我有一个在 Chrome 中完美运行的 Angular 6.x 应用程序。问题是尝试在 IE 11 中运行它时,出现错误:
错误:无效的参数。在 DefaultDomRenderer2.prototype.setProperty...
已经在 StackOverflow 中尝试了我在没有帮助的情况下找到的所有答案。我在这里列出主题,所以你们不会尝试将它们作为答案:
在 head 标签中添加:
<meta http-equiv="X-UA-Compatible" content="IE=11">
Run Code Online (Sandbox Code Playgroud)感谢您的帮助。
internet-explorer polyfills internet-explorer-11 angular angular6
我遇到了一个问题,我的下面的代码'fetch' is undefined在 Internet Explorer 11 中说。我使用的是最新的 jquery,jquery-3.3.1.min.js我什至尝试过$.ajax,fetch但没有奏效。谁能帮我解决这个问题,下面是我的代码。它甚至可以在ie11中工作。非常感谢!
这是我的代码:
"use strict";
$(function () {
var myData = [];
$.get("#{request.contextPath}/JobSearchItem.xhtml", function (data) {
$("#searchTextField").autocomplete({
minLength: 2,
source: myData,
select: function select(event, ui) {
event.preventDefault();
var url = '#{request.contextPath}/index.xhtml';
var searchValue = ui.item.value;
var data = new FormData();
data.append('searchValue', searchValue);
fetch(url, {
body: data,
method: "post"
}).then(function (res) {
return res.text();
}).then(function (text) {
$('#results').append($(text).find('#textTable'));
$('#results').append($(text).find('table'));
$('#results').append($(text).find('#bestTable'));
$("#clearone").show();
});
},
response: function response(event, ui) …Run Code Online (Sandbox Code Playgroud) forEach 循环应该在 IE11 和 diplay 中工作
对象不支持属性或方法“forEach”。
它应该可以工作,因为它是一个 ECMAScript-5 函数并且IE11 支持它。
但是,我这里的代码不起作用:
var alltable = document.querySelectorAll('*[id^="table_"]'); //Select all elements with the id starting by "table_"
alltable.forEach(function(element) {
// Do some code
});
Run Code Online (Sandbox Code Playgroud)
知道为什么吗?
javascript foreach internet-explorer ecmascript-5 internet-explorer-11
我们需要让 Angular 8 和 IE 11 协同工作。
我们使用target=es5,ng serve创建了pollyfills-es5.js,里面包含了需要的array-includes polyfill,但是控制台报错:ERROR TypeError: Object does not support property or method 'includes'。其他代码工作正常,一些组件显示在屏幕上。
配置文件
{
...
"compilerOptions": {
...
"target": "es2015",
"lib": ["es2018", "dom"],
"module": "esnext"
}
}
Run Code Online (Sandbox Code Playgroud)
tsconfig.es5.json
{
"extends": "./src/tsconfig.app.json",
"compilerOptions": {
"target": "es5"
}
}
Run Code Online (Sandbox Code Playgroud)
angular.json
...
"build":{
...
"configurations":{
"es5": {
"tsConfig": "./tsconfig.es5.json"
}
}
...
},
"serve":{
...
"configurations":{
"es5": {
"browserTarget": "frontend:build:es5"
}
}
...
}
Run Code Online (Sandbox Code Playgroud)
浏览器列表:最后 1 个 chrome 版本,IE 11
开始我们使用的代码:ng serve --live-reload=false …
我需要使用servicestack在新窗口中打开PDF.我有一个PDF的MemoryStream,能够将PDF下载到浏览器.我的问题是我无法想出如何在新标签中打开PDF.我已经使用此代码从服务堆栈下载pdf.
public class PDfResult : IDisposable, IStreamWriter, IHasOptions
{
private readonly Stream _responsestream = null;
public IDictionary<string, string> Options { get; set; }
public PDfResult(Stream responseStream)
{
_responsestream = responseStream;
Options = new Dictionary<string, string>
{
{"Content-Type", "application/pdf"},
{"Content-Disposition", "attachment; filename=\"mypdf.pdf\";"}
};
}
public void WriteTo(Stream responseStream)
{
if (_responsestream == null)
return;
_responsestream.WriteTo(responseStream);
responseStream.Flush();
}
public void Dispose()
{
_responsestream.Dispose();
}
}
Run Code Online (Sandbox Code Playgroud)
这是我使用的锚标签:
<a class="btn" href="api/myapi?rosType=blank&rId=0&rType=Daily&Pages=1&Weeks=1" target="_blank">Generate PDF</a>
Run Code Online (Sandbox Code Playgroud) c# google-chrome servicestack angularjs internet-explorer-11
我有CSS代码擅长IE11,但在IE8中似乎不太好.我已经尝试过使用:
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
Run Code Online (Sandbox Code Playgroud)
但它没有奏效.边距,边框和功能区类不起作用.
要添加一些信息,这里是CSS:
body{
background-image:url(images/bg4.jpg);
background-repeat:no-repeat;
font-family: 'Montserrat', Arial;
font-size: 1em;
background-size:100%;
}
.all{
right: 100px;
bottom: 20px;
position: absolute;
}
h2{
text-align: center;
color: #F1F2F4;
text-shadow: 0 1px 0 #000;
}
a{
text-decoration: none; color: #EC5C93;
}
.ribbon{
background: rgba(200,200,200,.5);
width: 50px;
height: 70px;
margin: 0 auto;
position: relative;
top: 19px;
border: 1px solid rgba(255,255,255,.3);
border-top: 2px solid rgba(255,255,255,.5);
border-bottom: 0;
border-radius: 5px 5px 0 0;
box-shadow: 0 0 3px …Run Code Online (Sandbox Code Playgroud) html css internet-explorer internet-explorer-8 internet-explorer-11
Flex-end适用于chrome和firefox,但不适用于即浏览以下代码
.flex-container { display: flex;
flex-wrap: nowrap;
background-color: DodgerBlue; flex-direction: column;flex-flow:column;
justify-content: flex-end;height:100px
}Run Code Online (Sandbox Code Playgroud)
<h1>Flexible Boxes</h1>
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
</div>
<p>Try to resize the browser window.</p>
<p>A container with "flex-wrap: nowrap;" will never wrap its items.</p>
<p><strong>Note:</strong> Flexbox is not supported in Internet Explorer 10 or earlier versions.</p>Run Code Online (Sandbox Code Playgroud)
javascript ×5
angular ×2
c# ×2
css ×2
angular6 ×1
angularjs ×1
aurelia ×1
css3 ×1
ecmascript-5 ×1
flexbox ×1
foreach ×1
html ×1
html5 ×1
jquery ×1
openlayers-3 ×1
polyfills ×1
servicestack ×1