母版页@RenderSection("head", required: false)
内容页@section head {
<script type="text/javascript"
src="@Url.Content("~/scripts/AjaxDemo.js")">
</script>
}
母版页@RenderSection("head", required: false)
内容页@section head {
<script type="text/javascript"
src="@Url.Content("~/scripts/AjaxDemo.js")">
</script>
}
转载于:https://www.cnblogs.com/xuyuchen/p/8282989.html