vs2008无法调试js

JavaScript020

vs2008无法调试js,第1张

你用是mvc模式吧,你的vs是调试或运行状态吧,这样是不行的,你应该负责地址,用新的窗口打开,然后打开开发者工具在里面找你的页面或者js,在js的左侧设置断点,在开发者工具里面启动调试就可以了

在jquery官网下载标有Visual Studio的js文件。

如:

# 1.4.1 (Release Notes)

Minified, Uncompressed

Documentation: Changelog, Visual Studio

点击1.4.1的Visual Studio 版本进行下载。

地址:

http://docs.jquery.com/Downloading_jQuery

首先你要在页面引用js

<head>

<script src="js/xx.js" type="text/javascript"></script>

</head>

src 是你的路径

type 固定就这这样

然后你直接调用 这个js里面方法就行了