美文网首页
iOS报错 Consecutive statements on

iOS报错 Consecutive statements on

作者: 夜归人 | 来源:发表于2015-04-21 22:39 被阅读0次

    调试的时候发现报错:

    Consecutive statements on a line must be separated by ';

    仔细看了一下,原来是数组误写成了:

    var ZodiacList = {"子鼠", "丑牛", "寅虎", "卯兔", "辰龙", "巳蛇", "午马", "未羊", "申猴", "酉鸡", "戌狗", "亥猪"}

    将{}更改成[]后,问题解决。

    相关文章

      网友评论

          本文标题:iOS报错 Consecutive statements on

          本文链接:https://www.haomeiwen.com/subject/xzeufttx.html