我一直在研究Magento一个星期,我坚持在Magento静态块。我正在编写一些静态块内容的代码。用线条:Magento静态块JavaScript变量
"Testing Magento variables {{config path="general/store_information/name"}}"
即时让我的商店名称完美。我的问题是,我已经尝试了多次,将该变量分配给javascript 问候变量,但始终失败。也许有人可以帮我什么,我应该写,而不是??????。我会用它来处理其他句子。
<html>
<body>
"Testing Magento variables {{config path="general/store_information/name"}}"
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var greeting = ??????????;
}
</script>
</body>
</html>
感谢您的建议,像魅力一样工作 – Macas 2014-12-02 15:19:34