我正在使用 ASP.NET MVC,在 Razor View 之一中,我必须使用 CDN 包含脚本
<script src="//unpkg.com/babel-polyfill@process"></script>
我收到以下错误CS0103: The name 'process' does not exist in the current context
我尝试使用@@ 而不是@,但没有奏效。
最佳答案
通过以下行解决。
<script src="//unpkg.com/babel-polyfill@('@')process"></script>
关于asp.net - 如何在 Razor 中包含 @ 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52894670/