Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ef074c

Browse files
committed
feat(jQuery): プラグインはただのルールとしての実装
1 parent0b36c50 commit5ef074c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎ja/jQuery/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ calculator.fn = calculator.prototype;
4848

4949
[import, calculator-example.js](../../src/jQuery/calculator-example.js)
5050

51+
実装をみてもらうと分かりますが、JavaScriptの`prototype`の仕組みをそのまま利用しています。
52+
そのため、特別な実装は必要なく「拡張する時は`calculator.prototype`の代わりに`calculator.fn`を拡張して下さい」というルールがあるだけとも言えます。

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp