javascript变量,var x = a = {}做什么?

2 javascript variables syntax

我在jQuery中看到类似这样的东西:

jQuery.fn = jQuery.prototype = {}
Run Code Online (Sandbox Code Playgroud)

为什么这样做?这是不是只是说jQuery.prototype = {}?我不确定我是否理解Resig在这里所做的事情.

vic*_*ugo 13

同样如下:

jQuery.prototype = {}
jQuery.fn = jQuery.prototype
Run Code Online (Sandbox Code Playgroud)

在我看来,所有在一行中更清楚地表明您为两个变量分配相同的值