1

我必须将此 http://rajendar-codinghints.blogspot.in/2012/06/add-dropdown-country-state-list-to-html.html包含 在我的 smarty 模板文件中,即 header.tpl

所需的 js 文件以正确的路径存在。

整个事情在简单的 html 文件中运行良好,但在 smarty 中不行,请帮忙。

4

1 回答 1

0

将您的 Javascript 代码包装到{literal}标签中

{literal}
<script type="text/javascript">
<!--
  Your javascript code
// -->
</script>
{/literal}

有关更多详细信息,请参阅文档

于 2012-11-10T07:58:41.810 回答