2012-06-16 113 views

回答

1

基于文档元素的ID是很重要的:

输入文本区域

This is where you'll enter markdown. id is "wmd-input". 

但随着你的代码:

@Html.TextArea("Contents", string.Empty, new 
      { 
       @class = "wmd-input" 
      }) 

你设置类的textare不是id。试试这个:

@Html.TextArea("Contents", string.Empty, new 
      { 
       id = "wmd-input" 
      })