您的位置:首页 > Web前端 > JavaScript

Augular运行index.html报错 GET runtime.js net::ERR_ABORTED 404 (Not Found)

2020-06-27 05:14 836 查看

博主只是提供一个解决办法哈,当时人傻了犯了这种低级错误

注意注意 下面是我原来错误的代码

<html lang="en">
<head>
<meta charset="utf-8">
<title>DlinxWebsite</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<app-root></app-root>
</html>

我当时寻思哪也没错啊,为什么会报出这种错误, 然后细看一发现 app-root没有被标签包裹
哈哈 给大家发出来的目的也就让你们看一乐, 也提醒自己少犯这种低级错误哈

下面放正确的代码

index.html中

<html lang="en">
<head>
<meta charset="utf-8">
<title>DlinxWebsite</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
</html>

完毕 溜溜球

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐