谢凡社区_C4D&Ae设计交流社区

 找回密码
 立即注册
查看: 565|回复: 0

[攻略] 手机调试打开控制台方法vconsole

[复制链接]

351

主题

351

帖子

11万

金币

管理员

Rank: 9Rank: 9Rank: 9

积分
231762
发表于 2022-8-26 16:14:46 | 显示全部楼层 |阅读模式
600659fd71c3c27164cd6f254ce6b5b.jpg

threejs调试工具添加的测试


  1. <!DOCTYPE html>
  2. <html>
  3.         <head>
  4.                 <meta charset="utf-8">
  5.                 <title></title>
  6.         </head>
  7.         <body>
  8.         </body>
  9.         <script src="https://cdn.jsdelivr.net/npm/vconsole@3.11.0/dist/vconsole.min.js"></script>
  10.         <script>
  11.           // 初始化
  12.           var vConsole = new VConsole();
  13.           console.log('vConsole init');
  14.         </script>
  15. </html>
复制代码



外部引入:
  1. function addScript(url){
  2.         var script = document.createElement('script');
  3.         script.setAttribute('type','text/javascript');
  4.         script.setAttribute('src',url);
  5.         document.getElementsByTagName('head')[0].appendChild(script);
  6. }

  7. addScript("https://cdn.jsdelivr.net/npm/vconsole@3.11.0/dist/vconsole.min.js");

  8. var vConsole = new VConsole();
  9. console.log('vConsole init');
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

南通谢凡软件科技有限公司

谢凡社区_C4D&Ae设计交流社区 ( 苏ICP备15030673号-2 )

GMT+8, 2023-3-26 04:26 , Processed in 0.107814 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表