index.html 代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta />
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
<title></title>
<script type="text/javascript" src="<%= BASE_URL %>static/d2c/js/d2c.min.1.4.1.js"></script>
<link rel="stylesheet" href="<%= BASE_URL %>static/d2c/css/d2c.1.4.1.css" />
<script type="text/javascript" src="<%= BASE_URL %>static/d2c/js/d2c.cluster-0.11.min.js"></script>
<script type="text/javascript" src="<%= BASE_URL %>static/d2c/js/draw.js"></script>
<script type="text/javascript" src="<%= BASE_URL %>static/d2c/js/turf.min.js"></script>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app">
<!--app-html-->
</div>
<script type="module" src="/main.js"></script>
</body>
</html>
3***@qq.com (作者)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<!-- Open Graph data -->
<!-- <meta property="og:title" content="Title Here" /> -->
<!-- <meta property="og:url" content="http://www.example.com/" /> -->
<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
<!-- <meta property="og:description" content="Description Here" /> -->
<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>
<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>
<!-- built files will be auto injected -->
</body>
</html>
我复制了这个页面,在里面多引入几个3个js文件 一个css文件,结果还是一样
2022-10-28 10:41
DCloud_UNI_WZF
回复 3***@qq.com: 检查css是否引起冲突,如确认框架问题,请提供测试工程
2022-10-28 11:05