【发布时间】:2017-01-14 18:39:48
【问题描述】:
我为这样的 dart 应用程序设置了 index.html 文件:
<!DOCTYPE html>
<html>
<head>
<title>basic_app</title>
<script defer src="main.dart" type="application/dart"></script>
<script defer src="packages/browser/dart.js"></script>
</head>
<body>
</body>
</html>
Chrome 已经开始向我发出警告:
不推荐使用具有无效类型/语言属性的脚本,并将在 2017 年 1 月左右在 M56 中删除。有关更多详细信息,请参阅 https://www.chromestatus.com/features/5760718284521472。
我需要进行哪些更改才能消除此警告? 我相信这是由这条线引起的:
<script defer src="main.dart" type="application/dart"></script>
【问题讨论】: