我已将下面的代码放置在标记内。未终止的字符串文字错误
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('head').append('<script type="text/javascript" src="../wp-includes/js/thickbox.js"></script>');
});
</script>
我收到了“未终止的字符串文字”的错误。
是的,我亲爱的朋友,没有错误,但我仍然无法将thickbox.js添加到头标记 – 2010-12-11 17:03:43
@balaji为什么你不使用getscript的jquery,它会照顾你的一切 – kobe 2010-12-11 17:05:44
是的,使用getscript可能是更好的方式去:-) – Trotter 2010-12-11 17:13:04