相关疑难解决方法(0)

Chrome DevTools 损坏 - Stetho 无法使用

Stetho 和 Google Chrome DevTools 在 macOS 更新后变得无法使用(我怀疑 macOS 更新是此错误的根源,但我更愿意提及它)。

这是在设备上打开“检查模式”后 DevTools 的外观(由 Facebook Stetho 库提供,适用于 Android 和 OKHttp)。

开发者工具窗口

页面上不再有“CSS”样式表,字体也发生了变化。许多标签页没有显示(即网络请求),我只能访问一些错误消息:

There were 84 bytes that were not consumed while processing request 4
There were 84 bytes that were not consumed while processing request 5
There were 84 bytes that were not consumed while processing request 6
Failed to clear temp storage: undefined
Run Code Online (Sandbox Code Playgroud)

我按照有关此问题的说明进行操作:无法清除临时存储和此问题:无法清除临时存储:Chrome 中的安全错误但我无法解决该问题。

这是我尝试过的:

  • 使用 AppCleaner 卸载并重新安装 Chrome
  • 从磁盘中删除 chrome 缓存
  • 从中删除 chrome 配置文件 ~/Library/Application\ …

android google-chrome google-chrome-devtools okhttp stetho

48
推荐指数
2
解决办法
5427
查看次数

无法清除临时存储空间

无法清除临时存储:确定某些文件对于Web应用程序内的访问不安全,或者对文件资源进行了太多调用.引发SecurityError

我在控制台中收到此错误.我有一个脚本名称script.js,它使ajax调用从php检索数据.

知道为什么吗?

这是我的jQuery脚本

$(document).ready(function() {

  var loading = false;
  var docHeight = $(window).height();

  $('.timeline').css({minHeight: docHeight});

  function get_tl_post() {

    if (loading==false) {

      loading = true;

      $.ajax({
        type:"POST",
        url:"timeline.php",
        data:"data=instagram",
        beforeSend:function(){
           $('.loader').fadeIn("slow");
        },
        complete:function(){
          loading = false;
          $('.loader').fadeOut("slow");
        },
        success:function(data) {
          if(data=="error")
          {
            get_tl_post();
          }
          $(data).hide().appendTo(".timeline").fadeIn(1000); 
        }
      });
    }
  }

  $(window).scroll(function(){
    if ($(window).scrollTop() == $(document).height() - $(window).height()) {
      get_tl_post();
    }
  });
});
Run Code Online (Sandbox Code Playgroud)

javascript jquery

36
推荐指数
2
解决办法
6万
查看次数