want to customize a log function to output not only in the console, but also in the text box
log(obj)=>{
console.log(obj)
}
but console.log ()
can pass N parameters, such as console.log,
,
, and how should I write my custom log,? log (apdre bpender) = > {}
doesn"t seem to be the case.
I vaguely remember that some source code seems to say log (arg.) = > {}
, and then I go to Baidu. But all of them are less than Baidu, so I came here to ask the great god, how should I write this indefinite number of parameters?