javascript - How to enable console.log in ExtJs - Stack Overflow

I use ExtJS and include the framework with <script src="extext-dev.js"><script>

I use ExtJS and include the framework with <script src="ext/ext-dev.js"></script>.

Despite the fact that the ExtJS documentation makes extensive use of console.log, this function is not working, because it is somehow redefined to an empty function.

How can I enable console.log in ExtJS ? Is there a configuration option that I need to set on application loading ? Or is there another function used to log to the console ? (I found Ext.log, but it does not log to the console neither.)

ExtJS is redefining console.log. Outsite of ExtJs, alert(console.log); will output function log() { [native code ] }, inside of ExtJS, it will output only function log() {}, and console.log('message'); does nothing.

I use ExtJS and include the framework with <script src="ext/ext-dev.js"></script>.

Despite the fact that the ExtJS documentation makes extensive use of console.log, this function is not working, because it is somehow redefined to an empty function.

How can I enable console.log in ExtJS ? Is there a configuration option that I need to set on application loading ? Or is there another function used to log to the console ? (I found Ext.log, but it does not log to the console neither.)

ExtJS is redefining console.log. Outsite of ExtJs, alert(console.log); will output function log() { [native code ] }, inside of ExtJS, it will output only function log() {}, and console.log('message'); does nothing.

Share Improve this question edited Oct 7, 2013 at 12:02 Lorenz Meyer asked Oct 7, 2013 at 11:53 Lorenz MeyerLorenz Meyer 20k23 gold badges83 silver badges128 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 7

ExtJS does no such thing, as you can see by visiting for example ExtJS API docs, which run on ExtJS, opening the console and running console.log(). Something else in your code must be causing this.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744309489a4567880.html

相关推荐

  • javascript - How to enable console.log in ExtJs - Stack Overflow

    I use ExtJS and include the framework with <script src="extext-dev.js"><script>

    7天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信