传递和读取javascript变量到smarty

时间:2014-05-05 15:43:28

标签: javascript smarty var

我如何从smarty中读取javascript变量?像这样

<script>
  var number =10;
</script>
{if 'javascript variable (number)' == 10}
    do something....
{/if}

谢谢!

0 个答案:

没有答案