| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,3 +48,5 @@ calculator.fn = calculator.prototype; | |||
| 48 | 48 | ||
| 49 | 49 | [import, calculator-example.js](../../src/jQuery/calculator-example.js) | |
| 50 | 50 | ||
| 51 | + 実装をみてもらうと分かりますが、JavaScriptの`prototype`の仕組みをそのまま利用しています。 | ||
| 52 | + そのため、特別な実装は必要なく「拡張する時は`calculator.prototype`の代わりに`calculator.fn`を拡張して下さい」というルールがあるだけとも言えます。 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments