我在我的應用程序的根部有這個非常簡單的頁面。以下內容無法加載jQuery。但是,如果我從路徑中刪除〜/,那麼jQuery會加載並警告工作。有什麼問題?爲什麼jQuery無法加載?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="~/Scripts/jquery-2.0.3.js"></script>
<script>
$(document).ready(function() {
alert('hello');
});
</script>
</head>
<body>
</body>
</html>
不喜歡有一個ASP.NET標籤:)) – nphx
對不起,錯過了asp.net標籤。 –