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

前端 未结 2 1041
名媛妹妹
名媛妹妹 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.

    
    

提交回复
热议问题