Home  >  Article  >  Backend Development  >  请大家帮忙看一段代码

请大家帮忙看一段代码

WBOY
WBOYOriginal
2016-06-23 14:09:271025browse

这是一个程 序的内容页模板,但是这样写出来,搜索 引擎抓不到。请问该 如何写才能让搜索 引擎抓到

{include file="theme/default/header.html" titles=$data.title}{include file="require_models_js.html"}<div id="wrap">    <div id="main">	{include file="theme/default/userheader.html"}			<div id="mytag">		{if !empty($data.0.tag)}			{foreach $data.0.tag as $d}		    <li><a href="{spUrl c=blog a=tag tag=$d}"><span>{$d}</span></a></li>			{/foreach}		{/if}					<div class="clear"></div>		</div>				<div id="feedArea">			<script type="text/javascript">				$(document).ready(function(){  					yb_load_feeds('blog','getOneBlog',{					bid:{$bid}					}				);					})			</script>			<div id="feed_loading"></div>			<div id="feed_box"></div>			<div class="clear"></div>						{if isset($adunit.6) && $adunit.6.is_show == 1}				<div id="ad_theme_list"></div>				<script>					$(document).ready(function(){						ad_aside('#ad_theme_list',6);							setInterval(function(){								ad_aside('#ad_theme_list',6);							}, 30000);					})				</script>			{/if}						<div class="favatitle">谁喜欢<span>{$fava.count}</span></div>			{if $fava.count !=0}			<div class="fava">							{foreach from=$fava.rs item=d}				<a href="{goUserHome domain=$d.domain uid=$d.uid}" title="{$d.username} - {ybtime time=$d.time}"><img src="{avatar uid=$d.uid size=small}" alt="{$d.username}"/></a>				{/foreach}  			    <div class="clear"></div>			</div>			{/if}						<div id="comment"></div>			<script>				$(document).ready(function(){  					loadCommend('comment',{$bid});				});			</script>		</div>		</div>		<div id="aside">    {include file="theme/default/aside.html"}	</div></div>{include file="theme/default/footer.html"}


回复讨论(解决方案)

没有看到内容展示的代码

没有看到内容展示的代码 以前没有见过这类模板不知道怎么弄

js控制的内容 搜索引擎肯定抓不到了

没有看到内容展示的代码
版主如果这段代码在模板中不用JS调用该 怎么写

<div id="feedArea">			<script type="text/javascript">				$(document).ready(function(){  					yb_load_feeds('blog','getOneBlog',{					bid:{$bid}					}				);					})			</script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn