不使用打字稿但获取警告和程序将无法调试。 [英] Not using typescript but getting an warning and program will not debug.

查看:127
本文介绍了不使用打字稿但获取警告和程序将无法调试。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上没有使用TypeScript。

它不接受我的设置jquery代码:

I am not using TypeScript in my website.
It is not accepting my setup jquery code:

<script type="text/javascript" src="~/Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
    ...



错误代码:


Error Code:

Warning	TS7027	Unreachable code detected.	
TS7027	Unreachable code detected. C:path\Scripts\jquery-1.4.1-vsdoc.js	4579	Active
Warning	TS7027	Unreachable code detected. C:\Path\jquery-1.4.1.js	3612	Active
Warning	TS7027	Unreachable code detected. C:\Path\Scripts\jquery-1.4.1.js	3612	Active





我尝试过:



在阻止我的jquery-1.4.1,js脚本之前从未遇到过TypeScript错误。



What I have tried:

Never got a TypeScript error before that is blocking my jquery-1.4.1,js script.

推荐答案

document )。ready( function (){
.. 。
(document).ready(function () { ...



错误代码:


Error Code:

Warning	TS7027	Unreachable code detected.	
TS7027	Unreachable code detected. C:path\Scripts\jquery-1.4.1-vsdoc.js	4579	Active
Warning	TS7027	Unreachable code detected. C:\Path\jquery-1.4.1.js	3612	Active
Warning	TS7027	Unreachable code detected. C:\Path\Scripts\jquery-1.4.1.js	3612	Active





我尝试过:



在阻止我的jquery-1.4.1,js脚本之前从未遇到过TypeScript错误。



What I have tried:

Never got a TypeScript error before that is blocking my jquery-1.4.1,js script.


Quote:

在阻止我的jquery-1.4.1,js脚本之前从未遇到过TypeScript错误。

Never got a TypeScript error before that is blocking my jquery-1.4.1,js script.



错误消息告诉你jquery库中存在TypeScript错误。

这意味着jquery是用Typescript编写的,而不是你的代码。



您必须显示页面的完整代码才能让某人找到

问题。

要缩小问题范围,请尝试对部分代码进行注释,以查看问题何时消失。


the error message tells you that there is a TypeScript error in the jquery library.
It means that jquery is written in Typescript, not your code.

You have to show full code of your page in order to have someone to find the
problem.
To narrow the problem, try to comment part of your code to see when the problem disappear.


这篇关于不使用打字稿但获取警告和程序将无法调试。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆