【发布时间】:2011-07-09 15:07:45
【问题描述】:
<head runat="server">
<meta charset="UTF-8" />
<title>Make Games with Scirra Software</title>
<meta name="description" content="Game making with Construct." />
<meta name="keywords" content="game maker, game builder, html5, create games, games creator" />
<link rel="stylesheet" href="~/css/default.css" />
<link rel="stylesheet" href="~/plugins/coin-slider/coin-slider-styles.css" />
<link rel="shortcut icon" href="~/images/favicon.ico" />
<link rel="apple-touch-icon" href="~/images/favicon_apple.png" />
<script src="~/js/googleAnalytics.js"></script>
</head>
呈现为:
<head>
<meta charset="UTF-8" />
<title>Make Games with Scirra Software</title>
<meta name="description" content="Game making with Construct." />
<meta name="keywords" content="game maker, game builder, html5, create games, games creator" />
<link rel="stylesheet" href="../css/default.css" />
<link rel="stylesheet" href="../plugins/coin-slider/coin-slider-styles.css" />
<link rel="shortcut icon" href="../images/favicon.ico" />
<link rel="apple-touch-icon" href="../images/favicon_apple.png" />
<script src="~/js/googleAnalytics.js"></script>
</head>
为什么 JavaScript URL 是 ~/ 而不是 ../?
【问题讨论】:
标签: asp.net path relative-path tilde