我如何制作自定義 HTML Helper 就像Html.CheckBoxFor() 我制作依賴于數(shù)據(jù)庫的動(dòng)態(tài)表單輸入一樣,所以我需要生成我的自定義 HTML 元素我嘗試PartialView通過ajax request返回并將返回HTML的添加 PartialView到DOM,但需要更多時(shí)間,具體取決于服務(wù)器端 $.ajax({ type: "GET", url: "@Url.Action("FindTransactionForInternal", "Transactions")", contentType: 'application/json; charset=utf-8', dataType: 'html', data: { transId:transId }, success: function (response) { $('#internaldetails').html(response); } });
如何制作自定義 HTML Helper?
ITMISS
2021-10-14 14:07:20