@using IwbZero.ToolCommon.StringModel @using WeApp.Helpers @model string @{ string[] arr = Model.Split('#'); string groupNo = arr[0]; string id = "scene-info"; bool withScript = (arr.Length > 1 ? arr[1] : "").ValB(); } @Html.Partial("__/_AreaBox", $"情景信息#{id}_{groupNo}") @if (withScript) { using (Html.BeginScripts()) { } } @using (Html.BeginScripts()) { }