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应用的例子 具体文件结构如下:
随机推荐
- 3 Vue.js基础
Vue中的过滤器.钩子函数.指令.字符串填充.以及部分方法使用的案例(操作表单) <!DOCTYPE html> <html lang="en"> < ...
- mooc-IDEA 高效定位代码--004
十.IntelliJ IDEA -高效定位代码-精准搜索 1.快速定位类:Navigate->Class... [Ctrl+N] 2.文件:Navigate->File.. [Ct ...
- 防止XSRF 解决方案
1.首先在表单提交页面生成校验使用的Token public ActionResult Index() { //Token验证需要使用的token string token = System.Guid ...
- 通过挂载系统U盘搭建本地yum仓库
首先打开hbza(CentOS)和yum,两者要连接上 第1步:在hbza中创建一个目录 输入mkdir /lxk,名字随便起.输入mount /dev/cdrom /lxk 第2步:打开yum, ...
- linux系统系统调优之----内核优化
主要是指在Linux系统中针对服务应用而进行的系统内核参数调整,优化没有的标准, 根据实际需求优化才是最合适的. 1)编辑内核配置文件 2)参数及简单说明 3)生效配置 1)编辑内核配置文件 vim ...
- HTML: 引号不能忽视
在js中常常生成拼接html,然后放到dom中,但是有些拼接的html标签需要加一些指或者属性,这个时候不能忽略引号 如果data.link_tel有空格,不加单引号导致value的值不完全 str ...
- HDFS镜像文件fsimage和编辑日志文件edits
镜像文件和编辑日志文件 1)概念 namenode被格式化之后,将在/opt/module/hadoop-2.7.2/data/tmp/dfs/name/current目录中产生如下文件 edits_ ...
- git的基本使用方法
git的基本使用方法:https://blog.csdn.net/qq_33316091/article/details/82414389
- 使用ssh协议在linux主机之间快速上传和下载文件
scp 要上传的文件 上传主机用户名@主机地址:要上传的主机目录 例如: scp *20181111*.gz inas@10.2.13.57:/INAS/dsgbak/20181110 表示将当前目录 ...
- C# Lodop与C-Lopdop选择打印机
原文:https://www.cnblogs.com/huaxie/p/9766886.html https://www.cnblogs.com/huaxie/p/10857490.html http ...















