Google JSAPIを使用すると、InfieldLabel JavaScriptが壊れます。なぜそれを修正するのですか?
-
30-10-2019 - |
質問
現在、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でラインを削除すると、内野ラベルが機能し始めますが、メニューは壊れます。
両方を機能させるにはどうすればよいですか?
正しい解決策はありません
所属していません StackOverflow