Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
80 views
in Technique[技术] by (71.8m points)

javascript - 在JsFiddle中打印Var(Print Var in JsFiddle)

How would I print something to the result screen in JsFiddle from my JavaScript.(如何从JavaScript中将内容打印到JsFiddle的结果屏幕中。)

I can't use document.write() , it doesn't allow it, neither print .(我不能使用document.write() ,它不允许它,也不能print 。) What should I use?(我该怎么用?)   ask by aritroper translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To be able to see output from console.log() in JSFiddle, go to External Resources on the left-side panel and add the following link for Firebug:(为了能够在JSFiddle中查看console.log()的输出,请转到左侧面板上的External Resources并为Firebug添加以下链接:)

https://getfirebug.com/firebug-lite-debug.js(https://getfirebug.com/firebug-lite-debug.js) 添加firebug-lite-debug.js后的结果示例

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...