我想在VS2008中獲得一個js文件,foo.js,從我寫的另一個js庫/文件,但不能找出參考路徑?語法?/?字符串的智能感知?參考路徑重新javascript的intellisense
該庫位於名爲common.js的文件中,該文件與我正在處理的foo.js位於同一文件夾中。
這裏是我試過的路徑...
/// <reference path="../../scripts/common.js"/>
/// <reference path="/../scripts/common.js"/>
/// <reference path="../scripts/common.js"/>
/// <reference path="/scripts/common.js"/>
/// <reference path="scripts/common.js"/>
/// <reference path="/common.js"/>
/// <reference path="../common.js"/>
/// <reference path="/common.js"/>
/// <reference path="common.js"/>
祕訣是什麼路徑語法/字符串,我失蹤?
FWIW頂部路徑設置的內容在此MVC應用程序的母版頁......像這樣
<script type="text/javascript" src="../../scripts/common.js"></script>
感謝格雷格
該修復程序是從月/ 3月8時間表...我沒有安裝此修補程序的jQeury tho http://www.west-wind.com/Weblog/posts/536756.aspx或 這裏http://code.msdn.microsoft.com/KB958502 – w4ik 2008-11-13 15:33:32
是的,一個。我有一箇舊的書籤,對不起。 – StingyJack 2008-11-13 19:34:17