{literal}
<SCRIPT LANGUAGE="JavaScript"
SRC="../calendar/weeklycalendar.js">
</script>
<script>
// call the function to build the calendar
// function's param specify the first day of week
// 0=Sunday, 1 = Monday, ..., 6=Saturday
alert("before");
buildWeeklyCalendar(1);
alert("afetr");
</script>
{/literal}
这个脚本在服务器上运行良好但是当我在smarty模板中使用它时它不起作用。 任何人都可以解释。
由于
答案 0 :(得分:0)
我明白了。将参考调用模板的PHP文件调用js文件。该路径不是根据智能模板的位置,而是根据调用php文件的位置。
谢谢