javascript - Style console.log output and run functions -
After doing a little bit of scandal around the source code for
, I saw how to console users to communicate with them (Only works in Chrome).
In addition, if I If I enter I tried to run my function in the console logs by declaring the function of your website: But if I try to enter Is there any information about styling the output of console logs and how to run a function from the console? For the style, you can check - if you read through the code then I'm sure you can. Understand how it works. Available to be available joinUs () on the console log, then a function is run that directs me to a new page.
function testFunc () {console.log ('Hello World!'); }
testFunc () on the console log, I get the following error:
< code> ReferenceError: testFunc is not defined
testfunc , specify it clearly on
window , do
window.testFunc = function () {console.log ('Hello World!')}; . it should work.
Comments
Post a Comment