is not defined错误快速定位

开发工具与关键技术:Visual Studio 2015 、mvc
作者:周水生
撰写时间:2019年01月28日
下面我们来看一个例子
出错环境,多条件连接查询中,
报错Failed to load resource: the server responded with a status of 404 (Not Found);Uncaught ReferenceError: createSelct is not defined;
在这种情况下我们可以从404看出找不到资源;可以判断出不是路径不对就是路径无效;
在这里插入图片描述

这时候我们能看到createSelct is not defined,这里着重看到createSelct,这里提示createSelct没定义或是无效

这时候我们应该来到Visual Studio 相应页面,Ctrl+F 精确查找;
这样我们就可以很快的找到出错的具体位置;这里的错误是关键词不对导致的路径无效;我们把关键词改回来就行了;
在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44564406/article/details/88947680