Giter Club home page Giter Club logo

Comments (6)

surunzi avatar surunzi commented on May 18, 2024

v1.0.8(本周内更新)会暴露filter接口,可以调用屏蔽一些指定的Log。

eruda.get('console').filter(function (log)
{
    return !(log.type === 'error' && /deprecated(.|\n)*stringify/.test(log.src.stack));
});

from eruda.

jareguo avatar jareguo commented on May 18, 2024

cool!

from eruda.

surunzi avatar surunzi commented on May 18, 2024

Console面板的代码重构中,同时增加单元测试,字符串%d%o替换、CSS样式支持、表格输出等新功能及相关接口文档,版本更新推迟。

from eruda.

jareguo avatar jareguo commented on May 18, 2024

嗯,没事…… 这边我先绕过了

from eruda.

surunzi avatar surunzi commented on May 18, 2024

已更新1.1.0版(相关接口文档更新中),可通过以下方法绕过:

1、设置filter

eruda.get('console').filter(function (log)
{
    return !(log.type === 'error' && /deprecated(.|\n)*stringify/.test(log.src.stack));
});

2、禁止访问不可枚举属性

eruda.get('console').config.set('displayUnenumerable', false);

3、禁止访问Getter方法(默认)

eruda.get('console').config.get('displayGetterVal', false);

2、3可以设置面板里手动开启关闭

from eruda.

jareguo avatar jareguo commented on May 18, 2024

👍 很棒

from eruda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.