ATL*_*DEV 5 asp.net-mvc visual-studio visual-studio-2013
出于某种奇怪的原因,Visual Studio 2013不断转换以下代码行:
<input type="button" value="@T("Checkout.ShipToThisAddress")" class="button-1 select-shipping-address-button" onclick=" setLocation('@Url.RouteUrl("CheckoutSelectShippingAddress", new {addressid = item.Id})') " />
Run Code Online (Sandbox Code Playgroud)
对此:
<input type="button" value="@T("Checkout.ShipToThisAddress")" class="btn-default-1 pull-right" onclick=" setlocation('@url.routeurl("checkoutselectshippingaddress", new { addressid = item.id })') " />
Run Code Online (Sandbox Code Playgroud)
请注意,标记属性名称和内容均为小写.此外,Visual Studio抱怨该行仅在编辑器中缺少双引号.这是生成的输出:
<input type="button" value="Bill to this address" class="btn-default-1 pull-right" onclick="setLocation(' /checkout/selectbillingaddress?addressid=10856 ') ">
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下建议,但它仅适用于ASP而非MVC页面.我在VS 2013的文本编辑器选项中找不到MVC选项.
| 归档时间: |
|
| 查看次数: |
365 次 |
| 最近记录: |