久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 Visual Studio 中調試/導航 JS 代碼

Debugging/Navigating JS Code in Visual Studio(在 Visual Studio 中調試/導航 JS 代碼)
本文介紹了在 Visual Studio 中調試/導航 JS 代碼的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

是否可以在 Visual Studio 中跨 Javascript 文件啟用 f12查找所有引用?我正在使用 requireJS 在我的 SPA 中注冊 js 文件.我也在使用 BackboneJS.

Is there anyway to enable f12 or find all references across Javascript files in Visual Studio? I'm using requireJS to register the js files in my SPA. I'm using BackboneJS as well.

有什么技巧可以像我使用 C#/.net 代碼一樣在 Visual Studio 中翻閱相關代碼?我在網上搜索并調查了自己,但找不到任何東西.

Any tips for flipping through relavent code in Visual Studio like I can with C#/.net code? I've searched around online and investigated myself but couldn't find anything.

謝謝

推薦答案

要啟用 F12 導航到另一個 .js 文件中定義的 JS 函數源,您需要將以下行添加到您引用的當前 .js 文件的頂部外部函數:

to enable F12 navigation to JS function source defined in another .js file you need to add the following line to the top of the current .js file where you reference the external function:

/// <reference path="../Path/To/The/Referenced/file.js" />

../部分是可選的,只需自己構建正確的路徑即可.添加上述塊后,Visual Studio 在 F12 擊中其引用時成功找到外部 js 函數的定義.至少它適用于 VS2013 Premium.

The ../ part is optional, just build the correct path yourself. After the above chunk is added Visual Studio successfully finds the definition of the external js function upon F12 hit on its reference. At least it works for me with VS2013 Premium.

這篇關于在 Visual Studio 中調試/導航 JS 代碼的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機器人提及發出該機器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復必須使用導入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務器時的歡迎消息)
主站蜘蛛池模板: 偷牌自拍| 亚洲视频在线观看 | 国产一区欧美 | 国产精品18久久久 | 亚洲一区二区欧美 | 欧美日韩视频 | 99色视频 | 欧美一区二区视频 | 国产视频福利一区 | 成人精品鲁一区一区二区 | 欧美成年网站 | 亚洲国产精品一区二区三区 | 亚洲综合精品 | 四色成人av永久网址 | 精品久久久久一区 | 91电影| 精品日韩欧美一区二区 | 日韩欧美中文在线 | 午夜激情小视频 | 欧美黄色录像 | 视频在线一区二区 | av大片在线 | 免费av一区二区三区 | www.中文字幕av | 久久久久亚洲精品 | 国产精品日韩在线观看一区二区 | 亚洲精品视频久久 | 91九色在线观看 | 欧美一区免费 | 久久精品网 | 亚洲一区二区三区桃乃木香奈 | 日韩国产欧美视频 | 91av精品| 亚洲精品www | 亚洲国产成人精品女人久久久 | 亚洲一区二区三区四区在线观看 | av中文在线 | www.国产| 国产日产久久高清欧美一区 | 欧美色人 | 久久国产成人 |