由于某些原因,我无法为我的插件准备好jquery文档
我的javascript
jquery(document).ready(function($) {
alert("hello world");
$("#testdiv").text("hi");
});
来源于我的网站
<link rel=\'stylesheet\' id=\'admin-bar-css\' href=\'http://example.com/wp-includes/css/admin-bar.css?ver=20111209\' type=\'text/css\' media=\'all\' />
<script type=\'text/javascript\' src=\'http://example.com/wp-includes/js/jquery/jquery.js?ver=1.7.1\'></script>
<script type=\'text/javascript\'>
/* <![CDATA[ */
var fantasy_golf = {"ajaxurl":"http:\\/\\/example.com\\/wp-admin\\/admin-ajax.php"};
/* ]]> */
</script>
<script type=\'text/javascript\' src=\'http://example.com/wp-content/plugins/fantasy-golf/js/fantasy-golf.js?ver=1.2\'></script>
<script type=\'text/javascript\' src=\'http://example.com/wp-includes/js/comment-reply.js?ver=20090102\'></script>
当我追寻我梦幻高尔夫的源头时。js(在firefox的源代码中)它有我的js的正确版本。(这不应该是因为缓存了旧版本)