我可以在Java腳本使用Blogger條件標籤(IF)我可以使用Blogger條件標籤(IF)在Java腳本
如:
<script type="javascript">
<b:if cond='data:blog.pageType == "index"'>
console.log("OK");
</b:if>
</script>
我都試過了。發生語法錯誤。
SyntaxError: missing ; before statement
爲什麼不你是否在'script'標籤上面使用' Epsilon 2014-12-04 05:14:41
在我的$(document).ready(function()中,只有當頁面類型==索引 – SDListing 2014-12-04 05:17:20