How to serialize a function to json (using razor @)

前端 未结 4 1470
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 14:07

How can I serialize a client function to a json object? (similar to how kendo controls work)

This is what I have so far...

View:

@Html.TestCo         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-14 14:28

    Just make this onSubmit argument being a string and use its value as is. You will no longer need the text tags when calling the helper.

提交回复
热议问题