You may try the following: var array = @Html.Raw(Json.Encode(@ViewBag.Array)); for(var i = 0; i < array.length; i++) { jScriptArray[i] = array[i]; }
確定! 回上一頁