私はjQueryプラグインtzineClockを持っています。しかし、私がそれを呼び出すときにjquery関数がサポートされていません
$(document).ready(function(){
/* This code is executed after the DOM has been completely loaded */
$('#fancyClock').tzineClock();
});
"この機能はサポートされていません"というエラーが発生しています。エラーの内容を教えてもらえますか?ここでtzineClockコードは次のとおりです。
$.fn.tzineClock = function(opts){
// "this" contains the elements that were selected when calling the plugin: $('elements').tzineClock();
// If the selector returned more than one element, use the first one:
var container = this.eq(0);
if(!container)
{
try{
console.log("Invalid selector!");
} catch(e){}
return false;
}
if(!opts) opts = {};
var defaults = {
/* Additional options will be added in future versions of the plugin. */
};
/* Merging the provided options with the default ones (will be used in future versions of the plugin): */
$.each(defaults,function(k,v){
opts[k] = opts[k] || defaults[k];
})
// Calling the setUp function and passing the container,
// will be available to the setUp function as "this":
setUp.call(container);
return this;
}
どの機能がありますか? tzineClockを呼び出そうとしていますか?それを呼び出すコードを表示できますか? – Rup
$(ドキュメント).ready(関数(){ \t /このコードは、DOMの後に実行される*完全にロードされている*/ \t $( '#1 fancyClock')tzineClock(); })。 – Nagarajan
ここでしか電話していません – Nagarajan