web storm查看文件结构
菜单栏Navigate -> File Structure
https://www.jetbrains.com/help/webstorm/viewing-structure-of-a-source-file.html
You can examine the structure of the file currently opened in the editor using the Structure tool window (Alt+7) or the Structure popup (Ctrl+F12).
Alt+7是固定在左侧栏,ctrl+F12是弹窗显示
以下的示例,
<tr>
<td>Avatar</td>
<td><input type="hidden" name="ctl00$cphMain$ucProfile$Avatar$hffulList"
id="ctl00_cphMain_ucProfile_Avatar_hffulList"
value="[{"FileName":"3004057.png","Size":"1550","ContentType":"image/png","PhysicalName":"7778181a-1dad-4898-9c21-df416f812405.png","NewPhysicalName":null,"FileuploadId":"0","FilePath":null}]">
<script type="text/javascript">$(function () {
function JsonToString(json) {
var str = '';
for (var key in json) {
if (json[key] == null) {
str = str + ',"' + key + '":' + json[key];
} else {
str = str + ',"' + key + '":' + '"' + json[key] + '"';
}
}
if (str.length > 0) {
str = str.substring(1);
str = '{' + str + '}';
}
return str;
};
function JsonArrayToString(jsonAry) {
var str = '';
var strItem;
for (var i = 0; i < jsonAry.length; i++) {
strItem = JsonToString(jsonAry[i]);
if (strItem.length > 0) {
str = str + ',' + strItem;
}
}
if (str.length > 0) {
str = str.substring(1);
str = '[' + str + ']';
}
return str;
};
$(document).on('click', '.LISA_FileuploadResultFileAction', function () {
var $trDel = $(this).parent().parent();
var jsonAry = jQuery.parseJSON($('#ctl00_cphMain_ucProfile_Avatar_hffulList').val());
var jsonItem = jsonAry[$trDel.index()];
jsonAry.splice($trDel.index(), 1);
$('#ctl00_cphMain_ucProfile_Avatar_hffulList').val(JsonArrayToString(jsonAry));
$trDel.remove();
if ($('#ctl00_cphMain_ucProfile_Avatar_hffulList').val().length = 0) $('#Avatar_Result').hide();
});
$('#Avatar').fileupload({
maxChunkSize: 1048576,
paramName: '1f041c67-b5db-4599-a9ab-3f1614a651b5',
url: 'http://172.31.212.20/LISA_60_Dev_BackOffice/Pages/jQueryHandler.ashx',
dataType: 'json',
add: function (e, data) {
$('#Avatar_ProcessContent').css('width', '0%').html('');
$('#Avatar_ProcessWrap').show();
var acceptFileTypes = /(\.)(png|gif|jpeg|jpg|pdf|bmp|xls|xlsx|doc|docx|ppt|pptx|zip|rar)$/i;
var ext = data.originalFiles[0]['name'].substr(data.originalFiles[0]['name'].lastIndexOf(".")).toLowerCase();
if (ext.length > 0 && acceptFileTypes.test(ext)) {
data.submit();
} else {
$('#Avatar_ProcessWrap').hide();
alert('Not an accepted file type');
}
},
done: function (e, data) {
var newItem = data.result;
$('#Avatar_ProcessWrap').hide();
if ($('#ctl00_cphMain_ucProfile_Avatar_hffulList').val().length == 0) {
var newItemStr = JsonToString(newItem);
newItemStr = '[' + newItemStr + ']';
$('#ctl00_cphMain_ucProfile_Avatar_hffulList').val(newItemStr);
} else {
var jsonAry = jQuery.parseJSON($('#ctl00_cphMain_ucProfile_Avatar_hffulList').val());
jsonAry.push(newItem);
$('#ctl00_cphMain_ucProfile_Avatar_hffulList').val(JsonArrayToString(jsonAry));
}
var action = '';
action = '<td><a href="javascript:void(0);" class="LISA_FileuploadResultFileAction">Delete</a></td>';
$('#Avatar_Result').append('<tr><td><a href="/LISA_60_Dev_BackOffice/FileTemps/' + newItem.PhysicalName + '" target="_black">' + newItem.FileName + '</a></td><td>' + newItem.Size + ' Byte</td><td>' + newItem.ContentType + '</td>' + action + '</tr>');
$('#Avatar_Result').show();
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#Avatar_ProcessContent').css('width', progress + '%').html(progress + '%');
},
});
});</script>
<input id="Avatar" type="file">
<div id="Avatar_ProcessWrap" class="LISA_FileuploadProcessWrap" style="display: none;">
<div id="Avatar_ProcessContent" class="LISA_FileuploadProcessContent" style="width: 100%;">100%</div>
</div>
<table id="Avatar_Result" class="gridview" style="">
<tr>
<td><a href="/LISA_60_Dev_BackOffice/FileTemps/7778181a-1dad-4898-9c21-df416f812405.png"
target="_black">3004057.png</a></td>
<td>1550 Byte</td>
<td>image/png</td>
<td><a href="javascript:void(0);" class="LISA_FileuploadResultFileAction">Delete</a></td>
</tr>
</table>
</td>
</tr>
tr有两个td
第二个td包含5个元素,分别是
input type是hidden
script type是JavaScript
input type 是file,一个按钮,弹窗选择文件
div 显示进度条
table 显示上传过的文件

文件结构的icon含义
https://www.jetbrains.com/help/webstorm/symbols.html
Icons in tool windows and structure views #
|
Icon |
Description |
|---|---|
|
|
Class |
|
|
Abstract class |
|
|
Interface |
|
|
Method/function |
![]() |
Function in Dart |
|
|
Variable |
|
|
Field |
|
|
Property |
|
|
Parameter |
|
|
Element |
|
|
Directory |
|
|
Tests |
![]() |
Resource root |
|
|
Excluded |
|
Visibility modifiers |
|
|
|
Private |
|
|
Protected |
|
|
Public |
|
Bookmarks |
|
|
|
Anonymous bookmark – a check sign bookmark. Bookmarks are used for quick navigation within a file or across the entire project. |
![]() |
Lettered mnemonic bookmark – a letter in the interval from A to Z. |
![]() |
Numbered mnemonic bookmark – a number in the interval from 0 to 9. |
web storm查看文件结构的更多相关文章
- web storm使用和配置
官网:http://www.jetbrains.com/webstorm/ webStorm,File=>setting=>JavaScript-Libraries How WebStor ...
- Druid 配置及内置监控,Web页面查看监控内容 【我改】
转: Druid 配置及内置监控,Web页面查看监控内容 1.配置Druid的内置监控 首先在Maven项目的pom.xml中引入包 1 2 3 4 5 <dependency> ...
- CentOS6.8下搭建zookeeper web界面查看工具node-zk-browser
zookeeper的web界面查看工具Node-ZK-Browser的界面是用nodejs写的今天试着搭建了下. 1. 安装nodejs [root@localhost product]# pwd / ...
- 通过web界面查看hadoop集群运行日志的地址
通过web界面查看hadoop集群运行日志的地址: http://hostname:8088/logs/ SecurityAuth-root.audit 0 bytes Aug 27, 2016 5 ...
- 关于Web界面查看日志的权限问题
关于Web界面查看日志的权限问题 @(Hadoop) 访问集群的8088端口,通过web ui查看作业日志时,发现没有权限查看,8088主界面右上角显示Logged in as : dr.who,即匿 ...
- 该页必须使用安全性较高的Web 浏览器查看
当用https访问某个网站时,IE提醒“该页必须使用安全性较高的Web 浏览器查看” 您要访问的资源使用了128位版本的“安全套接层(SSL)” 安全保护.要查看该资源,您需要使用支持该版本的SSL浏 ...
- Python 简易web日志查看工具&可改装为命令行工具
Python 简易web日志查看工具&可改装为命令行工具 效果图 原理 利用python的paramiko库模拟ssh登录操作,并执行tail命令 所需库 flask.paramiko.gev ...
- hadoop2.X使用手册1:通过web端口查看主节点、slave1节点及集群运行状态
导读内容:1.如何通过web查看hdfs集群状态2.如何通过web查看运行在在主节点master上ResourceManager状态3.如何通过web查看运行在在slave节点NodeManager资 ...
- Tomcat中的webapps中的web应用的文件结构
可仿造Tomcat中的webapps下的已有web应用的例子 具体文件结构如下:
随机推荐
- react 之 flux
[WangQi]---flux---[react] 一.什么是Flux Flux 是一种架构思想,专门解决软件的结构问题.它跟MVC 架构是同一类东西,但是更加简单和清晰. 二.flux的基本概念 ...
- FormData模拟表单上传图片
[node]---multer模块实现图片上传---FORMDATA 1.安装muterl第三方模块 cnpm install multer --save 2.使用 multer在解析完成后,会向 ...
- 链表两数相加(add two numbers)
问题 给出两个 非空 的链表用来表示两个非负的整数.其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字. 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它 ...
- impala删表,而hdfs上文件却还在异常处理
Impala/hive删除表,drop后,hdfs上文件却还在处理方法: 问题原因分析,如下如可以看出一个属组是hive,一个是impala,keberas账号登录hive用户无法删除impala用户 ...
- Storm消费Kafka值得注意的坑
问题描述: kafka是之前早就搭建好的,新建的storm集群要消费kafka的主题,由于kafka中已经记录了很多消息,storm消费时从最开始消费问题解决: 下面是摘自官网的一段话:How Kaf ...
- 【记录】@Transactional
参考链接:https://blog.csdn.net/nextyu/article/details/78669997 参考链接:https://www.xuebuyuan.com/3222458.ht ...
- python面向对象的三大特征--继承子类调用父类方法
#在子类中调用父类方法 class Vehicle: country="China" def __init__(self,name,speed,load,power): self. ...
- django中collectstatic的使用
前言 我最近在琢磨django框架的使用,在上传个人网站服务器上时,再次遇到了找不到静态文件,css.img等样式全无的问题.于是沉下心来,好好研究了django的静态文件到底应该怎么去部署(depl ...
- Less 混合(mixin)
Less的混合:混合可以将一个定义好的class A轻松的引入到另一个class B中,从而简单实现class B继承class A中的所有属性.我们还可以带参数地调用,就像使用函数一样. .bord ...
- ltp-ddt 加入sram 需要修改的部分
./platform/fmxx-psoc-db add sram 将nor部分移植过来 # @name NOR read write test using dd # @desc Perform NOR ...















