비주얼 스튜디오 2017 (v15.4.4)
ASP.NET CORE MVCASP.NET CORE MVC는`ASP-의회 처리는`href` 속성을 생성하지 않습니다
코드 소스 :
@model Razor.Models.GuestResponse
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width"/>
<title>Index</title>
</head>
<body>
@ViewBag.Greeting World (from the view)
<p>We're going to have an excuting party.<br/>
(To do: sell it better. Add pictures or something.)</p>
<a asp-action="RsvpForm">RSVP Now.</a>
</body>
</html>
그러나 특성은 href
특성을 만들지 않습니다. Chrome에서 이와 같은 결과를 얻습니다.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width"/>
<title>Index</title>
<script type="text/javascript" src="http://gc.kis.v2.scr.kaspersky-labs.com/50E639F5-BFDC-EB4A-B0CB-8404EE08E366/main.js" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="http://gc.kis.v2.scr.kaspersky-labs.com/663E80EE4048-BC0B-A4BE-CDFB-5F936E05/abn/main.css"/></head>
<body>
Good Afternoon World (from the view)
<p>We're going to have an excuting party.<br/>
(To do: sell it better. Add pictures or something.)</p>
<a asp-action="RsvpForm">RSVP Now.</a>
</body>
</html>
왜 그런 결과가 나타날 수 있습니까?
이 코드는 면도기 안에 있습니까? 귀하의 코드는 나에게 잘 보인다. – Shyju