parser.parse is not a function——arcgis api报错解决办法
来源:互联网 发布:linux 卸载jdk1.7 编辑:程序博客网 时间:2024/05/29 04:13
在使用arcgis api的时候,会出现上面这种错误,百思不得其解,最后找到解决办法。
出现这个错误的原因是因为你引用的顺序和你在function里面的顺序不同造成的,dojo require 要求引用和定义的顺序必须相呼应,比方说你在require里面的顺序如果是这样的:
require([
"esri/map", "esri/InfoTemplate", "esri/layers/FeatureLayer",
"dojo/parser", "dojo/domReady!"
],
你function 里面的顺序必须是一样的:Map, InfoTemplate, FeatureLayer,
parser
每个都是互相对应的,必须require和function对应起来才行。
具体就像下图这样,必须对应起来才行,不能肯定会出现上面的错误。
0 0
- parser.parse is not a function——arcgis api报错解决办法
- js 报错 $ is not a function
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- js报错:****is not a function 的解决方法
- js报错$('#form1').ajaxSubmit is not a function...
- js报错$('#form1').ajaxSubmit is not a function...
- Extjs 报错 this.addEvents is not a function
- js报错:TypeError: document.GetElementById is not a function
- js报错 :TypeError: yanzhengma is not a function
- js报错:TypeError: document.GetElementById is not a function
- ajaxFileUpload报错jQuery.handleError is not a function
- animate is not a function(zepto 使用报错)
- intermediate value is not a function报错解决方法
- js 报错(intermediate value)(...) is not a function
- ajaxFileUpload报错$.ajaxFileUpload is not a function解决方法
- three.js报错renderer.setClearColorHex is not a function
- Python学习笔记05_函数
- Android模拟登陆学信网获取四六级成绩
- 一起学WEB(六) 打扮你的网页(一)
- LeetCode 102. Binary Tree Level Order Traversal
- C++ 关于namespace
- parser.parse is not a function——arcgis api报错解决办法
- 结构体类型作为函数参数
- SQL Server中获取第一天和最后一天
- 拆分多个字符串放入对应的容器程序代码
- cn.bing.com
- 网络爬虫:Requests+lxml
- 什么是脏读,不可重复读,幻读
- 启动redis出现Creating Server TCP listening socket *:6379: bind: No such file or directory
- Html Select 使用selected属性设置默认选择项