https://open-dev.dingtalk.com 钉钉开放平台登录
在项目的template.h5.html中的<head>里塞入<script src="https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug/0.1.3/index.js"></script>
例:
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script> var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) document.write( '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />') </script> <script src="https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug/0.1.3/index.js"></script> <title> <%= htmlWebpackPlugin.options.title %> </title> <script> </script> <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" /> </head> <body> <noscript> <strong>Please enable JavaScript to continue.</strong> </noscript> <div id="app"></div> <script> </script> </body> </html>
开发管理拖到最下面 点击去调试
调试页面
钉钉内
也可以点击钉钉端内调试后面的复制按钮,将地址发到手机钉钉中,再点击地址在手机端调试。(注意:最大连接数为1,手机端和PC端只能打开一个)
回到调试页面 发现多了调试地址 点击调试即可打开控制台
标签:UNIAPP,dingtalk,H5,PC,点击,调试,supports,CSS From: https://www.cnblogs.com/czq091449/p/17843423.html