从视图模型中的 <th> 标记中删除引号
Remove quotation mark from <th> tag in View Model
这是我的情况:
<th class="myClass" title="hello" world>myText</th>
我希望它变成:
<th class="myClass" title="hello world">myText</th>
这是我填充标题的方式:
@{string myTitle = Model.MyTitle;}
<th class="myClass" title=@myTitle>myText</th>
Model.MyTitle = "hello world".
如我所见,它将多个词分成多个属性。为什么? :
<th class="myClass" title="hello" world="">myText</th>
我为 Powertip 使用了标题属性。
解决了这个问题:
<th class="myClass" title="@myTitle">myText</th>
这是我的情况:
<th class="myClass" title="hello" world>myText</th>
我希望它变成:
<th class="myClass" title="hello world">myText</th>
这是我填充标题的方式:
@{string myTitle = Model.MyTitle;}
<th class="myClass" title=@myTitle>myText</th>
Model.MyTitle = "hello world".
如我所见,它将多个词分成多个属性。为什么? :
<th class="myClass" title="hello" world="">myText</th>
我为 Powertip 使用了标题属性。
解决了这个问题:
<th class="myClass" title="@myTitle">myText</th>