0
我正在使用CEWP(webpart)并将此代码放在那里。但是这个代码不在<head>
标签内。我需要在<head>
标记中插入此代码,动态插入javascript到<head>标记
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$("*").each(function() { if ($(this).children().length == 0) { $(this).text($(this).text().replace('Respuesta','Responder')); } });
</script>
我该怎么做?这个代码如何在CEWP webpart中工作?
你可以把那个javascript放在你想要的地方,但是不要忘记_spBodyOnLoadFunctionNames.push(“myFunction”) – 2010-05-01 07:46:07