日期:2014-05-17  浏览次数:20694 次

如何在MVC3中的文本框加入js事件?
HTML Helper:
   @Html.EditorFor(Function(model) model.counselor)
如何在以上这段代码中加入onfocus事件?
Helper MVC3 js

------解决方案--------------------
@Html.TextBoxFor(Function(m) m.qyName, New With {.onfocus="alert(123);"})