javascript - new Date().getDay(), the operator new here takes precedence over the . sign
PHP中文网
PHP中文网 2017-05-19 10:23:51
0
1
530

The document shows that new is after the period. What's going on?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
某草草

new with parameter list (new Date())跟成员访问(.)同个优先级,.按左往右执行;不带参数列表的(new Date) is one level lower.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!