一、form表单中引用
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment
@section header{
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/fileinput/5.0.3/css/fileinput.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/fileinput/5.0.3/js/fileinput.min.js"))
}
二、form的字段修改
修改之前:
<label class="col-sm-2 control-label ">商品照片 </label>
<div class="col-sm-4">
<input id="goodsPhoto" col="GoodsPhoto" type="text" class="form-control" />
</div>
修改之后:
<label class="col-sm-2 control-label ">商品照片 </label>
<div class="col-sm-4">