如何导出IE源码? [英] How to export IE source?

查看:142
本文介绍了如何导出IE源码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个具有json数据输出的项目,可以在IE Source中查看。它在IE Source中的格式如下:

I developed a project that has the output of json data, which can be viewed in IE Source. Its format in IE Source likes that:

{
 "Geometry": [ {
   "paths": [
    [
     [
      201394.01178484457,
      173661.08635829584
     ],
     [
      201392.0117168416,
      173661.08690949593
     ],
     ...
   }



是否可以将这些数据保存在文本文件中?谢谢。


Is it possible to save these data in a text file? Thanks.

推荐答案

我把方法看起来效果很好。简化的代码如下:

I tied an approach that appears to work well. The simplified code is below:
string routeInput = TextBoxSegID.Text;
string measureInput = TextBoxMeasure.Text;
string url = "http://myURL:6080/arcgis/rest/services/Test/RailLRSDef/MapServer/exts/PointQueryRest/SpatialQuery?LRSSegInput=" +
    routeInput + "&MeasureInput=" + measureInput + "&f=pjson";
var webClient = new System.Net.WebClient();
string data = webClient.DownloadString(url);



数据看起来像是

{

几何:[

{

x:201194.00504074385,

y:173661.14147845499,

m:300,

...

感谢您的评论。


The data looks like
{
"Geometry": [
{
"x": 201194.00504074385,
"y": 173661.14147845499,
"m": 300,
...
Thanks for your review.


如果你得到这个Json数据,那么尝试用div或者其他东西在页面上的某个地方显示。

然后做你想做的任何div。



您可以写入文本文件,制作PDF或直接打印该div。在完成所有这些操作之前,您需要将数据放在页面控件中。
If you are getting this Json data, then try to show somewhere on the page in a div or something.
Then do whatever you want to do with that div.

You can write to text file, make PDF or directly print that div. Before doing all these you need to place the data inside a page control.


这篇关于如何导出IE源码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆