在 shtml 中调用 js 函数
Calling a js function within shtml
有人要求我修复损坏的面包屑,但从未使用过 SSI shtml,所以请耐心等待。
他们正试图从 shtml 中调用一个 js 函数,而该函数正被另一个 shtml 调用。
main.shmtl
<!--#include virtual /shtml/abreadcrumb.shtml"-->
abreadcrcumb.shtml
<script src="script/location/abreadcrumb.js">
<script>
callabreadcrumb();
</script>
js一直在工作,直到它被放入shtml,所以我不去修改它。
您必须关闭第一个脚本标签:
<script src="script/location/abreadcrumb.js"></script>
<script>
callabreadcrumb();
</script>
有人要求我修复损坏的面包屑,但从未使用过 SSI shtml,所以请耐心等待。
他们正试图从 shtml 中调用一个 js 函数,而该函数正被另一个 shtml 调用。
main.shmtl
<!--#include virtual /shtml/abreadcrumb.shtml"-->
abreadcrcumb.shtml
<script src="script/location/abreadcrumb.js">
<script>
callabreadcrumb();
</script>
js一直在工作,直到它被放入shtml,所以我不去修改它。
您必须关闭第一个脚本标签:
<script src="script/location/abreadcrumb.js"></script>
<script>
callabreadcrumb();
</script>