🎉 欢迎访问GreasyFork镜像站!本站由公众号【爱吃馍】维护。 联系邮箱📮
💡 当前页面为缓存版本 (获取时间: 2025/12/22 11:29:13)。新内容正在后台静默同步中...

Greasy fork 爱吃馍镜像

토론 » 개발

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.

답글 게시

답글을 게시하려면 로그인하세요.