JavaScript/constructor:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第20行: 第20行:
ƒ Object() { [native code] }
ƒ Object() { [native code] }
</pre>}}}}
</pre>}}}}
== 兼容版本 ==
{| class="wikitable sortable"
|-
! rowspan=6| pc !! rowspan=6| mobile !! server
|-
! {{Vertical header|stp=1|chrome}}
! {{Vertical header|stp=1|Edge}}
! {{Vertical header|stp=1|Firefox}}
! {{Vertical header|stp=1|Internet Explorer}}
! {{Vertical header|stp=1|Opera}}
! {{Vertical header|stp=1|Safari}}
! {{Vertical header|stp=1|Android webview}}
! {{Vertical header|stp=1|Chrome for Android}}
! {{Vertical header|stp=1|Firefox for Android}}
! {{Vertical header|stp=1|Opera for Android}}
! {{Vertical header|stp=1|Safari on iOS}}
! {{Vertical header|stp=1|Samsung Internet}}
! {{Vertical header|stp=1|Node.js}}
|-
| 49 || 13 || 45 || NO || 36 || 9 || 49 || 49 || 45 || 36 || 9 || 5.0 || 6.0.0
|}

2020年6月25日 (四) 01:50的版本

引言

constructor 是一种用于创建和初始化class创建的对象的特殊方法。[1]

constructor([arguments]) { ... }

判断

constructor 属性返回对创建此对象的数组函数的引用。

模板:Leftrightflex

兼容版本

pc mobile server
chrome
Edge
Firefox
Internet Explorer
Opera
Safari
Android webview
Chrome for Android
Firefox for Android
Opera for Android
Safari on iOS
Samsung Internet
Node.js
49 13 45 NO 36 9 49 49 45 36 9 5.0 6.0.0