Skip to content

Commit 4b0e2a9

Browse files
teppeisazu
authored andcommitted
chore(jquery): syntax highlight for JS
1 parent 3b66dc2 commit 4b0e2a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ja/jQuery/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jQueryプラグインはprototype拡張のように `$.fn.greenify = function ()
2121

2222
`jQuery.fn`の実装を見てみると、実態は`jQuery.prototype`であるため実際にprototype拡張していることがわかります。
2323

24-
```
24+
```js
2525
// https://github.com/jquery/jquery/blob/2.1.4/src/core.js#L39
2626
jQuery.fn = jQuery.prototype = {
2727
// prototypeの実装
@@ -31,7 +31,7 @@ jQuery.fn = jQuery.prototype = {
3131

3232
`$()`は内部的に`new`をしてjQueryオブジェクトを返すので、このjQueryオブジェクトではprototypeに拡張したメソッドが利用できます。
3333

34-
```
34+
```js
3535
$(document.body); // 返り値はjQueryのインスタンス
3636
```
3737

@@ -65,7 +65,7 @@ jQueryではそこをどうやってカバーしているかというと、
6565

6666
`$.fn`と同様に`prototype`へのaliasを貼っているだけのただのコンストラクタ関数です。
6767

68-
```
68+
```js
6969
calculator.fn = calculator.prototype;
7070
```
7171

0 commit comments

Comments
 (0)