C
C
Chernichko2018-04-03 15:45:36
JavaScript
Chernichko, 2018-04-03 15:45:36

How to include my js file in the Bitrix component?

In the component template I do this

CJSCore::RegisterExt("js_my", Array(
      "js" =>    "/bitrix/js/myjs/myjs.js"
   ));
   CJSCore::Init(array("js_my"));

but - does not work.
Tell me how to connect js correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eternalfire, 2018-04-03
Chernichko

right so -
https://dev.1c-bitrix.ru/api_help/main/reference/c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question