2012-08-09 57 views
0

我在wordpress中使用此代碼來顯示jquery,但它不顯示。如何在wordpress中設置此代碼

if (typeof jQuery == 'undefined'){ 
    document.write(unescape("%3Cscript src="<?php bloginfo('template_directory'); ?>/js/jquery.js" type='text/javascript'%3E%3C/script%3E")); 
} 

回答

0

試試這個:

if (typeof jQuery == 'undefined'){ 
    document.write(unescape("%3Cscript src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type='text/javascript'%3E%3C/script%3E")); 
} 
相關問題