0
Magentoのドキュメントでは、この基本機能については説明しません。Magento 2:CMSページのbodyタグの最後の前にカスタムjsファイルを追加する方法
Magentoのドキュメントでは、この基本機能については説明しません。Magento 2:CMSページのbodyタグの最後の前にカスタムjsファイルを追加する方法
// bodyタグの前に追加のカスタムJSのためのステップの下に試してみてください
Step 1 : Add below layout code.
myvendor/mytheme/Magento_Theme/layout/default.xml
<referenceContainer name="before.body.end">
<block class="\Magento\Framework\View\Element\Template" template="You_Module::js.phtml" name="module_js"/>
</referenceContainer>
Step 2 : Add custom.js in js.phtml file like below.
<scrip src="example.com/jp2/test.js" />