ArcGIS for JavaScript 开发智能提示
开发如果没有智能提示,可想而知是一件多举痛苦的事情,好在Esri为Visual Studio 2010、Aptana3提供了一个插件,这样就使我们在使用ArcGIS API for Javascrip的时候获得了方便,可以大大节约开发时间 。 这个插件本质就是javascript文件,下载地址 :http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#api_codeassist 。
需要注意的是在Visual Studio 2010中dojo并不能智能提示,而Aptana和Visual Studio 2012 中对dojo则可以做到智能提示,如果对智能提示要求高的,可以采用Aptana和Visual Studio 2012作为开发环境。
A code assist provides information about the ArcGIS JavaScript API classes and their properties and methods from within an IDE. Starting from version 3.0, a VSDoc code assist is available for Microsoft Visual Studio 2010 and 2012RC. The code assist was created by utilizing the JavaScript XML Intellisense feature in Visual Studio, which offers dynamic class lists and tool tips when users are coding in Visual Studio or development enviroments that support VSDOC like Aptana.
Code assist offers the following features:
- Auto-completion of source code
- Summary of classes, constructors, properties, methods and globals
- Parameter hits for constructors and methods
Visual Studio Installation Instructions
The VSDoc file is a JavaScript file (.js). You can enable the VSDoc in Visual Studio by following the steps below:
- Download the zip file that contains the VSDoc file for the version of the ArcGIS API for JavaScript you are using.
- If working in an HTML file, add a script tag to add a reference to the code assist
<scripttype='text/javascript'src='path_to_vsdoc.js'></script>
- If working in a JavaScript file, add a reference directive to the VSDoc file:
/// <reference path="~/Scripts/esri-jsapi-vsdoc.js" />
For more information about using VSDoc files with Visual Studio, refer to Microsoft's JavaScript Intellisense MSDN article.
Note: Currently this VSDoc file is only supported with Visual Studio 2010 and Visual Studio 2012 RC. Visual Studio 2012 supports code assist for classes with multiple constructors but Visual Studio 2010 does not. So if you are using Visual Studio 2012 download the VS2012 version of the code assist.
Aptana 3 Installation Instructions
- Download the zip file that contains the VSDoc file for the version of the ArcGIS API for JavaScript you are using.
- Drag the VSDoc file into your Aptana project.
Downloads
- ArcGIS API for JavaScript version 3.5 (Aptana or Visual Studio 2010)
- ArcGIS API for JavaScript version 3.5 (Visual Studio 2012 Version)
- ArcGIS API for JavaScript version 3.4 (Aptana or Visual Studio 2010)
- ArcGIS API for JavaScript version 3.4 (Visual Studio 2012 Version)
- ArcGIS API for JavaScript version 3.3 (Aptana or Visual Studio 2010)
- ArcGIS API for JavaScript version 3.3 (Visual Studio 2012 Version)
- ArcGIS API for JavaScript version 3.2 (Aptana or Visual Studio 2010)
- ArcGIS API for JavaScript version 3.2 (Visual Studio 2012 Version)
- ArcGIS API for JavaScript version 3.1 (Aptana or Visual Studio 2010)
- ArcGIS API for JavaScript version 3.1 (Visual Studio 2012 Version)
ArcGIS for JavaScript 开发智能提示的更多相关文章
- Visual Studio 2013开启JavaScript的智能提示功能
在前一次的发布的时候,我们共享了Visual Studio 2013中Windows Azure移动服务的集成和功能.其中包含了移动服务表脚本的编辑能力的介绍.这一次的发布,我们将描述在Visual ...
- javascript 的智能提示intellisence用法
转载自:http://blog.csdn.net/applewangpai/article/details/23517087 引用指令reference Visual Studio 2012支持的 ...
- Eclipse添加Jquery和javascript的智能提示
使用Eclipse写Jquery和Javascript代码的时候,是没有智能提示的.我们可以使用一个插件来解决这个问题. 安装完成后,Eclipse会自动重启.重启之后,我们在项目上右键, 根据自 ...
- 在使用VS过程中关于Javascript没有智能提示的解决方法
问题:编写基本Script代码没有问题,但是在编写DOM代码时候没有智能提示.也就是在编写一般javascript代码时候没有问题,但是要写DOM代码的时候发现没有智能提示,如document等都需要 ...
- vs2015 不支持javascript的智能提示高亮
有些人安装了vs2015后发现居然不支持javascrpt的高亮功能,连工具-选项-文本编辑器里面的javascript也没有了,楼主也碰到这么个情况了,估计是有与装了多个版本的原因,楼主电脑安装了V ...
- DevExpress的JavaScript脚本智能提示
http://www.cnblogs.com/zhaozhan/archive/2011/06/08/2075767.html ASPxScriptIntelliSense.js在安装目录下的Comp ...
- Visual studio 2017 中的Javascript智能提示与调试
1.智能提示 对于JS文件中的API,你若需要让那个JS文件中的方法能够在你写的那个JS文件中能够智能显示的话,直接把它拉进你的JS文件中就好了. 举个例子:你想 在你正在写的a.js文件中引用b.j ...
- Visual Studio 2012设置Jquery/Javascript智能提示
Visual Studio 2012设置Jquery/Javascript智能提示 在Visual Studio 2008 Visual Studio 2010中微软已经开始支持jquery/java ...
- Visual Studio Code 使用 Typings 实现智能提示功能
前言 我们知道在IDE中代码的智能提示几乎都是标配,虽然一些文本编辑器也有一些简单的提示,但这是通过代码片段提供的.功能上远不能和IDE相比.不过最近兴起的文本编辑器的新锐 Visual Studio ...
随机推荐
- 学习PHP好,还是Python好呢?
首先简单介绍一下Python. Python在出现以来,已经有数以千计基于这项技术的网站和软件项目,Python因其独有的特点从众多开发语言中脱颖而出,深受世界各地的开发者喜爱. 下面,我们列举了Py ...
- Codeforces Round #170 (Div. 1 + Div. 2)
A. Circle Line 考虑环上的最短距离. B. New Problem \(n\) 个串建后缀自动机. 找的时候bfs一下即可. C. Learning Languages 并查集维护可以沟 ...
- CodeForces 620E"New Year Tree"(DFS序+线段树+状态压缩)
传送门 •题意 给你一颗 n 个节点的树,每个节点被染上了颜色: 有 m 次操作,每次操作的类型有两种 1 v c : 将以 v 为根的子树的结点全部涂成 c 2 v : 询问以 v 为根的子树的结点 ...
- Python--day41--线程队列
1,普通队列:queue.Queue(),先进先出 import queue q = queue.Queue() #队列 先进先出 q.put(1) q.put(2) q.put(3) q.put(4 ...
- Spring Security 中的 Bcrypt
最近在写用户管理相关的微服务,其中比较重要的问题是如何保存用户的密码,加盐哈希是一种常见的做法.知乎上有个问题大家可以先读一下: 加盐密码保存的最通用方法是? 对于每个用户的密码,都应该使用独一无二的 ...
- java TreeSet的排序之自然排序
TreeSet会调用元素的compareTo(Object o)方法来比较元素之间的大小关系,然后将集合里的元素按升序排列.此时需要排序元素的类必须实现Compareble接口,并覆写其int com ...
- Codeforces 837D 动态规划
Codeforces 837D 动态规划 传送门:https://codeforces.com/contest/837/problem/D 题意: 给你n个数,问你从这n个数中取出k个数,这k个数的乘 ...
- Linux 操作虚拟机、数据库
1.打开虚拟机,输入命令:ifconfig 查看iP和端口号,端口号一般为:22 2.打开Xshell(先安装好),连接虚拟机(根据iP和端口号) 若连接成功,Xshell则会显示虚拟机的ip和端口号 ...
- 对QT中QBitArray类进行简单剖析
我们知道Qt中的QBitArray类支持在位(bit)的层次上进行数据操作.本文剖析该类在二进制文件读写时的一些要点.另外,在Qt中,QDataStream类对于二进制文件的读写提供了诸多便利,需要注 ...
- 利用python第三方库提取PDF文件的表格内容
小爬最近接到一个棘手任务:需要提取手机话费电子发票PDF文件中的数据.接到这个任务的第一时间,小爬决定搜集各个地区各个时间段的电子发票文件,看看其中的差异点.粗略统计下来,PDF文件的表格框架是统一的 ...