2013-04-21 40 views
13

當我下載了jquery.mobile-1.3.1 DIST我看到下面的結構:jquery.mobile-1.3.1發行版中jquery.mobile-1.3.1.min.map的用途是什麼?

demos -> directory for demos of jquery-mobile 
images -> directory of images 
index.html -> index for demos 
jquery.mobile-1.3.1.css -> Uncompressed with Default theme 
jquery.mobile-1.3.1.js -> Uncompressed 
jquery.mobile-1.3.1.min.css -> Minified with Default theme 
jquery.mobile-1.3.1.min.js -> Minified 
jquery.mobile-1.3.1.min.map -> ?? (what it is for? is it necessary for min version?) 
jquery.mobile.structure-1.3.1.css -> Uncompressed structure without a theme 
jquery.mobile.structure-1.3.1.min.css -> Minified structure without a theme 
jquery.mobile.theme-1.3.1.css -> Uncompressed theme for structure without theme (can be changed by another theme) 
jquery.mobile.theme-1.3.1.min.css -> Minified theme for structure without theme (can be changed by another theme) 

正如你可以看到我不知道jquery.mobile-1.3.1.min.map的目的,是什麼那是爲了?分鐘版本需要嗎?

回答

19

這是一個源地圖。它們用於調試縮小的JavaScript文件。由於它僅用於調試目的,所以不是必需的。

我推薦閱讀Introduction to JavaScript Source Maps

+0

謝謝兄弟!我還沒有聽說過源地圖,但你的鏈接是非常明確的 – user1546652 2013-04-29 14:00:49