-2
Shopify ... 我已将json文件上传到资产中。我有JavaScript代码,它需要json文件的目录。请看下面的代码如下─Shopify从资产中调用JavaScript代码中的json文件
container: elem,
renderer: 'svg',
loop: false,
autoplay: true,
rendererSettings: {
progressiveLoad:false
},
path: 'data.json' <-----I need to call the json file here it is already uploaded into assests*******************************************************>
};
anim = bodymovin.loadAnimation(animData);
</script>
谢谢调用这个文件的路径。我想通了,但我在js里添加了一个json代码。我会在下一次尝试你的技术在我的项目上。 –