运行var printerPort = new SerialPort("COM3", 115200, Parity.None, 8, StopBits.One);
if(printerPort.IsOpen)
{
printerPort.Close();
}
printerPort.ReadTimeout = 1400;
printerPort.WriteTimeout = 1000;
printerPort.Open();
并打开http://localhost:8080
我使用pub serve
和angular: '^4.0.0'
但是当我运行pub build并打开build / web / index.html时,没有任何工作,我在chrome console中遇到错误:
sdk: '>=1.24.2'
我该如何解决?
答案 0 :(得分:0)
正确:
<script defer src="main.dart" type="application/dart"></script>
<script defer src="packages/browser/dart.js"></script>
不正确:
<script src="main.dart" type="application/dart"></script>
<script src="packages/browser/dart.js"></script>