有人能分享在Visual 2015 c#项目中添加ag网格的步骤吗?我尝试了“grid”,它在我的项目文件夹中创建了node_modules/ag-grid,但是它没有将它添加到解决方案中。如果我将node_modules文件夹添加到解决方案中,并尝试重新构建,则会得到以下错误:
“生成:除非提供了‘--模块’标志,否则无法编译模块。C:\SVN\SolutionName\ProjectName\node_modules\ag-grid\dist\lib\entities\rowNode.d.ts 5”
和
“构建:对装饰器的实验性支持是一个可能在未来版本中更改的特性。指定‘

发布于 2019-12-09 09:06:28
从项目中的ag-Grid开始 -链接将帮助您开始使用银栅。似乎您正在使用.Net MVC,所以您需要使用它的JavaScript版本。
引用来自index.html:Doc参考的js和CSS文件,不需要npm install
<head>
<script src="https://unpkg.com/ag-grid-community/dist/ag-grid-community.min.noStyle.js"></script>
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/dist/styles/ag-grid.css">
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/dist/styles/ag-theme-balham.css">
</head>https://stackoverflow.com/questions/36851483
复制相似问题