📜  自定义 js shopify - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:25.836000             🧑  作者: Mango

代码示例1
If I understand correctly, the asset_url filter is what you are looking for.

To include a JS file in a .liquid file, you use:

{{ 'script.js' | asset_url | script_tag }}

And a CSS file:

{{ 'style.css' | asset_url | stylesheet_tag }}