久久久久久久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 服務器時的歡迎消息)
主站蜘蛛池模板: 午夜视频在线 | 成人黄视频在线观看 | 狠狠干网站 | 2019天天操 | 成人在线免费视频观看 | 久久久久久成人 | 国产精品一区二区三区四区 | 亚洲精品久久久久久下一站 | 日韩一区二区三区在线观看 | 黄色免费网址大全 | 久久精品亚洲 | 国产一区二区视频在线观看 | 狠狠干影院 | 亚洲精品视频导航 | 亚洲欧美一区二区三区在线 | 欧美性大战xxxxx久久久 | 人妖一区 | 蜜月aⅴ免费一区二区三区 99re在线视频 | 久久av资源网 | 亚洲综合大片69999 | 久久久99国产精品免费 | 欧美一级全黄 | 日韩a视频 | 国产精品一区二区久久久久 | 一级大黄色片 | 亚洲第一天堂无码专区 | 午夜男人的天堂 | 欧美理论片在线 | 九九综合九九 | 99国产精品99久久久久久 | 亚洲精品中文字幕在线观看 | 午夜影院黄| 日本精品一区二区三区视频 | 亚洲美女在线一区 | 91精品www| 亚洲三区在线观看 | 久久精品成人 | 一区二区三区高清不卡 | 久久大全 | 欧美不卡网站 | 韩国理论电影在线 |