[removed] console.log not working in this context?

前端 未结 2 1033
名媛妹妹
名媛妹妹 2021-01-22 15:35
(function( $ ){ $.fn.openlayers = function( mapElementId, options ) {
        alert(console.log);
        console.log(options);
        ...
    }
});

I

相关标签:
2条回答
  • 2021-01-22 16:04

    Add the following line before OpenLayer script to tell it not to override the console functions.

    <script type="text/javascript">
        console.firebug=true;
    </script>
    
    0 讨论(0)
  • 2021-01-22 16:06

    Just click on ALL, you will definitely see the console.log output.

    http://i.stack.imgur.com/peduZ.png

    Hope it helps...!!!

    0 讨论(0)
提交回复
热议问题