Limit number of characters in console.log of monaca?

Asked 2 years ago, Updated 2 years ago, 90 views

When I changed the codeova of the recently created project in monaca from 4 to 5.2,

console.log() has previously logged all arguments. After making the changes, the log contents are separated in the middle and no further output is available.

I looked for a setting or something, but I couldn't find it, but
Please let me know if anyone knows about this phenomenon.
Thank you for your cooperation.

monaca

2022-09-30 21:11

1 Answers

This is a postscript to self-solving.

console.log("Character you want to output".replace(/, /g, ",").replace(/[/g, "[]/g, "]).replace(/]/g, "]);

resolved in .

, (half-width comma), [, ] (half-width key bracket?)
It seems that the three types of were bad, so I converted them appropriately with replace.

I couldn't tell if it was just a monaca setting, but the above is the solution.
Sorry for the trouble.


2022-09-30 21:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.