イム今、PHPの男、
$.plugin.method({
test: 'helloworld'
});
$.plugin.method({
test: 'another helloworld'
})
件まで何イムHERESに私の関数やクラスHERESに私の最初のプラグイン
を作る上でイム学習?
test = ['helloworld','another helloworld']
を期待して何イム
// class ?
jquery.plugin = function(){
// variables
var test = [];
// function ?
var method = function(params){
test[] = params['test']
}
console.log(test)
}
は、我々はJavaScriptでそれを行うことができますか?私はそれを正しくしていますか?
ありがとうございました!
試しましたか? – JJJ
ええ、私はその空をした。もう一度お試しください。ああ、申し訳ありませんが間違った方法。質問が更新されました。ごめんなさい。 –
フェリックスなので、$ .plugin.method()はそれ自身の機能ですか?プラグインの中でメソッドを呼び出さない? –