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

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

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

<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>

完毕 溜溜球

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值