小编Pad*_*ddy的帖子

Chrome - ERR_CACHE_MISS

有谁知道以下Chrome错误是什么?

Failed to load resource: net::ERR_CACHE_MISS
Run Code Online (Sandbox Code Playgroud)

我在网上看过,但还没有找到一个好的答案.有人说这可能与最新的Chrome更新有关吗?

它是什么,我该如何解决这个问题?

干杯

browser console caching google-chrome

51
推荐指数
2
解决办法
27万
查看次数

移动 - iOS - Safari - window.outerHeight返回0

我有一个window.outerHeight的问题.

在移动设备上的Safari浏览器上运行时返回0.我已在Android(Chrome)上测试过,它运行正常.

我在iOS9上.

我想知道旧设备是否支持解决方案或替代方案.

这不是时间问题.

在iPhone上打开以下内容:http: //jsfiddle.net/hfq0Ly1w/

alert(window.outerHeight);
Run Code Online (Sandbox Code Playgroud)

你可以通过在这里查看手机的高度属性来看到Safari上有很多错误:

http://ryanve.com/lab/dimensions/

干杯!

javascript safari ios outerheight

6
推荐指数
1
解决办法
4292
查看次数

iPhone - JavaScript调度事件 - 我的选择菜单不会在setTimeout函数上打开

请在iPhone上打开这些示例.

以下代码是正确的行为.

<select id="selectMenu">
    <option value="1">1</option>
    <option value="2">2</option>
</select>

<input id="button" name="button" type="button" value="Click Me" />


var initEvt = function (el, type) {
        var e = document.createEvent('MouseEvents');
        e.initEvent(type, true, true, window);
        el.dispatchEvent(e);
    },
    selMenu;

selMenu = document.getElementById('selectMenu');

document.getElementById('button').onclick = function () { 
    initEvt(selMenu, 'mouseover');
    initEvt(selMenu, 'mousedown');
    initEvt(selMenu, 'mouseup');
    initEvt(selMenu, 'click');   
}
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/ghwfstmj/

如果添加setTimeout函数,它将无法正常工作.

<select id="selectMenu">
    <option value="1">1</option>
    <option value="2">2</option>
</select>

<input id="button" name="button" type="button" value="Click Me" />


var initEvt = function (el, type) {
        var e = document.createEvent('MouseEvents');
        e.initEvent(type, true, …
Run Code Online (Sandbox Code Playgroud)

javascript iphone mobile select ios

5
推荐指数
1
解决办法
1375
查看次数

JQuery - Android - 'Keyup'事件在Chrome中退格时不起作用

我想知道为什么退格/删除按钮没有检测到jQuery中的keyup事件.

我觉得这很奇怪,因为它很有用,应该得到支持.有没有其他选择?

这只发生在Android - Chrome中.

干杯

jquery android keyup jquery-events

4
推荐指数
1
解决办法
2425
查看次数