欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

runtime-es2015.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 有大用

<!doctype html>
<html lang="zh-hans">
<head>
  <meta charset="utf-8">
  <title>美问系统</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link href="/material-icons.min.css" rel="stylesheet">

</head>
<body>
  <app-root></app-root>
</body>
</html>


Refused to apply style from 'http://localhost:4200/material-icons.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.\

会报这个错 

把 

  <link href="/material-icons.min.css" rel="stylesheet">

改成 

  <link href="//lib.baomitu.com/material-design-icons/3.0.1/iconfont/material-icons.min.css" rel="stylesheet">


吧 

因为 默认情况下 这里的每一个在 (http://localhost:4200 下的东西),都走的是 angular 程序,而不是真正的浏览器加载 (即便浏览器加载了, 也会走 angular 程序)

 

普通分类: