在视图文件中使用 @section Scripts将js代码嵌入到布局文件的 script标签下面
@section Scripts
script
@section Scripts { <script > console.log(1111) </script> }