我在asp.net core 2中使用了捆绑jquery.validate.js,但是遇到错误 我添加文件bundleconfig.json以将bundle设置为
[
{
"outputFileName": "wwwroot/js/jqueryval.js",
"inputFiles": [
"wwwroot/Scripts/jquery.validate.js"
],
"minify": {
"enabled": true,
"renameLocals": true
},
"sourceMap": false
}
]
我这样称呼捆绑文件
<script src="~/js/jqueryval.js"></script>