Greasy Fork is available in English.

게시판 » 개발

Setting function to variable

§
작성: 2015-05-19

Setting function to variable

The script below use to work but now it doesn't. Can someone tell me why it fails and how I can get it working. Thanks

log.info = console.info;
log.log("TEST");
woxxom관리자
§
작성: 2015-05-19
log = console.log.bind(console);
log("TEST");

This works if it's what you want to do.

§
작성: 2015-05-19

Thank you. Works well.

댓글 남기기

댓글을 남기려면 로그인하세요.