https://stackoverflow.com/questions/7604419/resharper-javascript-use-of-implicitly-declared-global-variable-x/8132307

https://github.com/taye/interact.js/issues/233

 

Assume you have two global variables, and the name of variable is confirmTranslation and selectAllTranslation, these variables are definite in ascx(Asp.Net) file.

<script>
        var selectAllTranslation = "";
        var urlGetPageTranslation = '';
 </script>

And you use these global variable in another js file, such as test.js.

Then you need add following code at the top of that JavaScript file

/* global confirmTranslation, selectAllTranslation */

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-07-27
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-12-16
  • 2021-07-16
  • 2021-07-05
相关资源
相似解决方案