用arcgis api for javascript进行地图开发,从公共页面platform.html页面引入,如下:
<link rel="stylesheet" type="text/css" href="http://localhost/arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css"/>
<link rel="stylesheet" type="text/css" href="http://localhost/arcgis_js_api/library/3.16/3.16/esri/css/esri.css" />
<script type="text/javascript" src="http://localhost/arcgis_js_api/library/3.16/3.16/init.js"></script>
引入之后可能是顺序问题,导致报很多错误,但是经过多次调整引入顺序还是没能解决,错误有:
①:项目中原来引入的js插件部分失效了,页面效果消失了;
②:
Uncaught TypeError: Cannot read property 'addValidator' of undefined
at HTMLDocument.<anonymous> (parsley.zh_cn.js:35)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at Function.ready (jquery.js:2)
at HTMLDocument.K (jquery.js:2)
③:
init.js:31 Error: multipleDefine
at d (init.js:5)
at Ja (init.js:27)
at init.js:28
at a (init.js:5)
at Xa (init.js:28)
at g (init.js:25)
at HTMLScriptElement.<anonymous> (init.js:30)
(anonymous) @ init.js:31
④:
/arcgis_js_api/library/3.16/3.16/jquery.js Failed to load resource: the server responded with a status of 404 (Not Found)
经过长时间尝试,还是解决不了,请问各位大神,这是什么原因呢?有人遇到过吗?