是否有可能将浏览器内置的webconsole实现到HTML页面? [英] Is there a posibility to implement the browser built-in webconsole into a HTML page?

查看:309
本文介绍了是否有可能将浏览器内置的webconsole实现到HTML页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JavaScript,我必须将我项目的详细信息打印到控制台。

当打开.html文件时,有没有办法让控制台立即打开好吧或某种方式让它以某种方式实现到html页面的主体?





提前谢谢?



我尝试了什么:



可能是一个愚蠢的问题,试图查询信息它,但最有可能的是我无法正确地将我的想法转化为文字。

I'm working with JavaScript and I have to print out the details of my project into the console.
Is there a way to have the console instantly open when the .html file is opened as well or a way to have it somehow implemented into body of the html page?


Thanks in advance?

What I have tried:

Might be a stupid question, tried to look up info on it, but most probably I can't put my thoughts into words correctly.

推荐答案

没有HTML可以做到这一点。如果可能的话,它必须使用javascript完成,但是,考虑它会告诉我这是一个很大的安全风险,所以我的猜测是你不能这样做。
There is no HTML that will do this. If possible, it would have to be done using javascript, but, thinking about it tells me it's a large security risk, so my guess would be you can't do it.


这篇关于是否有可能将浏览器内置的webconsole实现到HTML页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆