如何从@Modeljquery脚本中获取值.我希望从我的模型中获取索引(由我的自定义表中的行选择确定)获取一些属性IEnumerable<T>.我不想在表中显示此属性并执行类似单元格的操作.val()
例如 :
var selectedRow = $(this).parent().children().index($(this)) - 1;
Run Code Online (Sandbox Code Playgroud)
我想要类似的东西
@Model.ElementAt(selectedRow).SomeProperty
Run Code Online (Sandbox Code Playgroud)
内部脚本
谢谢