🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

Обсуждения » Разработка

Setting function to variable

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");
log = console.log.bind(console);
log("TEST");

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

Thank you. Works well.

Ответить

Войдите, чтобы ответить.