简体   繁体   English

JetBrains WebStorm中的本机或基础JavaScript文件

[英]Native or underlying JavaScript files in JetBrains WebStorm

I am currently using JetBrains WebStorm to develop a JavaScript library. 我目前正在使用JetBrains WebStorm开发JavaScript库。 When I declare a variable (EG var instance = new HTMLDivElement() ) it shows up in intellisense as being defined in a JavaScript file (in the case of HTMLDivElement , it appears to be in DHTML.js). 当我声明一个变量(例如EG var instance = new HTMLDivElement() )时,它在intellisense中显示为在JavaScript文件中定义(对于HTMLDivElement ,它似乎在DHTML.js中)。 I cannot seem to find them, however if possible I would like to locate them so I can understand the underlying code for the native objects. 我似乎找不到它们,但是,如果可能的话,我想找到它们,以便可以理解本机对象的基础代码。 Are these files physically located on my system? 这些文件在物理上位于我的系统上吗?

Yes, from my experience with PHPStorm, it's kept in a .jar file somewhere under the original installation folder. 是的,根据我对PHPStorm的经验,它保存在原始安装文件夹下某个地方的.jar文件中。 I'll try to find it in PHPStorm, so you can get an idea where to look for in your IDE. 我将尝试在PHPStorm中找到它,以便您可以在IDE中找到所需的位置。

In PHPStorm, it's found on 在PHPStorm中,它位于

INSTALLATION_FOLDER\plugins\php\lib\php.jar(\com\jetbrains\php\lang\psi\...)

That's for a PHP function. 那是一个PHP函数。 Hope this helps you find the right one on WebStorm. 希望这可以帮助您在WebStorm上找到合适的解决方案。 Take note that there's nothing there but function and method definitions (the actual implementation is not there). 请注意,除了函数和方法定义之外,这里什么也没有(实际的实现在那里)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM