解决方法
Array Literals
An array literal is a list of zero or
more expressions,each of which
represents an array element,enclosed
in square brackets ([]). When you
create an array using an array
literal,it is initialized with the
specified values as its elements,and
its length is set to the number of
arguments specified.Object Literals
An object literal is a list of zero or more pairs of property names and associated values of an object,enclosed in curly braces ({}). You should not use an object literal at the beginning of a statement. This will lead to an error or not behave as you expect,because the { will be interpreted as the beginning of a block.
原文地址:https://www.jb51.cc/js/151161.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。