主题 : 我在生成静态化栏目时,出现了channel 的bug 是${function}的js错误,跪求答案 |
级别: 解元
|
1# 发表于:2017-08-23 08:39:35 IP:123.121.*.*
|
||||
---|---|---|---|---|---|
级别: 总版主
|
3# 发表于:2017-08-23 08:45:00 IP:182.219.*.*
栏目里获取流量的js你用 <script src="/${res}/js/html5shiv.min.js"></script>
<script src="/${res}/js/respond.min.js"></script> <![endif]--> <script type="text/javascript"> $(function() { Cms.channelViewCount("${base}","${channel.id}"); Cms.siteFlow("${base}", location.href, document.referrer,"${site.config.flowSwitch?string}"); }); </script>这个 |
||
---|---|---|---|
级别: 解元
|
4# 发表于:2017-08-23 09:14:44 IP:123.121.*.*
回复第3楼<script type="text/javascript">
$(function() { Cms.channelViewCount("${base}","${channel.id}"); Cms.siteFlow("${base}", location.href, document.referrer,"${site.config.flowSwitch?string}"); }); </script>这块代码替换我的那个吗? 主要您写的前半段代码有个<!endif>感觉您写的代码也没有if标签,突然end 有点突兀 |
||
---|---|---|---|
级别: 解元
|
6# 发表于:2017-08-23 09:17:26 IP:123.121.*.*
回复第5楼那版主,使用<script src="/${res}/js/html5shiv.min.js"></script>
<script src="/${res}/js/respond.min.js"></script> <![endif]--> <script type="text/javascript"> $(function() { Cms.channelViewCount("${base}","${channel.id}"); Cms.siteFlow("${base}", location.href, document.referrer,"${site.config.flowSwitch?string}"); }); </script>来替换我上面的script整体标签内容吗? |
||
---|---|---|---|
级别: 解元
|
8# 发表于:2017-08-23 09:25:57 IP:123.121.*.*
回复第7楼刚刚填进去了替换了,但是替换的内容又报错了,您看看
您看看,然后我再给您附下面的该文件的头部整体信息: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=7" /> <title>${channel.title!channel.name} - ${site.name}</title> <meta http-equiv="keywords" content="${channel.keywords!}"/> <meta http-equiv="description" content="${channel.description!}"/> <link href="/${res}/css/layout.css" type="text/css" rel="stylesheet" /> <link href="/${res}/css/shuichan.css" rel="stylesheet" type="text/css" /> <link href="/${res}/css/gongyong_shuichan.css" rel="stylesheet" type="text/css" /> <link href="${resSys}/front.css" rel="stylesheet" type="text/css"/> <script src="${resSys}/jquery.js" type="text/javascript"></script> <script src="${resSys}/front.js" type="text/javascript"></script> <script src="/${res}/js/common.js" type="text/javascript"></script> <script src="/${res}/js/html5shiv.min.js"></script> <script src="/${res}/js/respond.min.js"></script> |
||
---|---|---|---|