我目前有一个既需要 JSAPI 又需要 infieldlabels javascript 的网站。我有以下代码:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.infieldlabel.min.js"></script>
<? /* those three lines for my menu */ ?>
<script type="text/javascript" src="http://www.google.com/jsapi" ></script>
<script type="text/javascript" > google.load("mootools", "1.2.1"); </script>
<script type="text/javascript" src="/js/MenuMatic_0.68.3.js"></script>
<? /* INIT */ ?>
<script type="text/javascript">
$(document).ready(function(){
$("label").inFieldLabels();
});
</script>
但是,内场标签不起作用。如果我使用 Google JSAPI 删除该行,则内场标签开始工作,但我的菜单中断。
我如何使两者都起作用?