I
I
Ivan2018-03-16 11:41:07
JavaScript
Ivan, 2018-03-16 11:41:07

How to specify in PhpStorm that the js-function will be used in another file?

I describe the functions in a separate js-file, which I then call on the desired page.
PhpStorm highlights js functions as unused. How to tell him that everything is in order and these functions will be used in another file?
5aab83045bf49150044448.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-03-16
@lidacriss

Include this js-file in the html file and use these functions in the same place on the page and there will be no "outrage" storm.

spoiler
либо в этом месте убрать "лишнее", чтобы не было стилизации при "неиспользуемых" функциях/переменных, если вас это так "смущает" :)
5aab872fbcff8842237393.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question