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

Greasy fork 爱吃馍镜像

Discussions » Développement

Setting function to variable

§
Posté le: 19/05/2015

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");
woxxomMod
§
Posté le: 19/05/2015
log = console.log.bind(console);
log("TEST");

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

§
Posté le: 19/05/2015

Thank you. Works well.

Poster une réponse

Connectez-vous pour poster une réponse.