2か月前に作成したスクリプトはすべて一度もうまくいきませんでした。 バックアップファイルを復元しようとしましたが、変更はありませんでした。 この問題は、私が使用することを、すべてのウェブサイトに表示され、Googleからのその使用のスクリプトが 機能をAPIは(.buttonある).corner()jquery-uiが壊れた
リンクやスクリプト:
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script src="http://malsup.github.com/jquery.corner.js"></script>
エラー:
BlockquoteUncaught exception: TypeError: Cannot convert '$("#BuyCredit")' to object
Error thrown at line 3, column 6 in() in http://www.t-samp.net/credit-shop.php : $("#BuyCredit").button().click(function() { called via Function.prototype.apply() from line 2, column 29359 in (b, f) in http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js : if(c[m].apply(b,f)===!1&&a.stopOnFalse) called from line 2, column 30902 in (b, c) in http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js : d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c)); called from line 2, column 19036 in (a) in http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js : A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready") called from line 2, column 28469 in() in http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js : c.removeEventListener("DOMContentLoaded",B,!1),e.ready()
マイスクリプト:
<script>
$(document).ready(function() {
$("#BuyCredit").button().click(function() {
$(".buycr").corner();
$(".buycr").css("display","block");
});
});
</script>
マイHTML:
<div class="buycr" data-corner="15px">
<div style="width:280px">Text</div>
</div>
<div style="width:100px">
<span id="HideBox">Zavřít</span>
</div>
あなたはjQueryの
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
の2つの異なるバージョンにリンクしている任意のフィードバック
ここで、 "BuyCredit"というIDを持つdivはありますか?エラーは、$( '#BuyCredit')がアイテムを返さないということです。 –