HowTo: Validate an ArcGIS for Local Government JavaScript configuration file
【相关信息】
Article ID: 40389
Software:
ArcGIS for Local Government 10.0, 10.1, 10.2
Platforms: N/A
【问题描述】
The ArcGIS for Local Government web applications have started to use JavaScript-based configuration files so that the contents of the file may be checked using JavaScript validation tools. This can be very helpful for troubleshooting or for finding errors such as missing JavaScript punctuation.
Instructions provided describe how to validate these configuration files.
Article ID: 40389
Software:
ArcGIS for Local Government 10.0, 10.1, 10.2
Platforms: N/A
【问题描述】
The ArcGIS for Local Government web applications have started to use JavaScript-based configuration files so that the contents of the file may be checked using JavaScript validation tools. This can be very helpful for troubleshooting or for finding errors such as missing JavaScript punctuation.
Instructions provided describe how to validate these configuration files.
1 个回复
易智瑞技术支持
赞同来自:
Any JavaScript validation tool may be used. In general, one submits the configuration file to the validator or copies the contents of the configuration file into a form on a validation web site. One repeats the cycle of editing and validating until validation is successful.
The procedure below shows an example using a validation website called
JSLint.
Because JSLint also concerns itself with JavaScript formatting, formatting complaints can obscure true JavaScript errors. In order to be able to run JSLint and get no errors, we recommend that the configuration file's JavaScript be first run through a formatter to 'beautify' it. An example beautifier website is
JSBeautifier.
【创建及修改时间】
Created: 6/19/2012
Last Modified: 9/10/2014
【原文链接】
http://support.esri.com/en/kno ... 40389
要回复问题请先登录或注册