完整的預設運算子列表
CoffeeScript | JavaScript 的 |
---|---|
is , == |
=== |
isnt , != |
!== |
not |
! |
and |
&& |
or |
|| |
true , yes , on |
true |
false , no , off |
false |
@ , this |
this |
of |
in |
in |
沒有對應的 |
a ** b |
Math.pow(a, b) |
a // b |
Math.floor(a / b) |
a %% b |
(a % b + b) % b |