Is there a php echo/print equivalent in javascript

前端 未结 10 1214
暖寄归人
暖寄归人 2020-12-24 00:33

Say I want to print html from inside a script tag.

A source like this

foo
10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 01:10

    l('output text example')

    after once defining

    l=console.log
    

    seems fine to me for a quick hacksy JS debugging in the browser console.

    Based on @Lil' Bits’s answer – thanks!

提交回复
热议问题