调试的时候发现报错:
Consecutive statements on a line must be separated by ';
仔细看了一下,原来是数组误写成了:
var ZodiacList = {"子鼠", "丑牛", "寅虎", "卯兔", "辰龙", "巳蛇", "午马", "未羊", "申猴", "酉鸡", "戌狗", "亥猪"}
将{}更改成[]后,问题解决。
调试的时候发现报错:
Consecutive statements on a line must be separated by ';
仔细看了一下,原来是数组误写成了:
var ZodiacList = {"子鼠", "丑牛", "寅虎", "卯兔", "辰龙", "巳蛇", "午马", "未羊", "申猴", "酉鸡", "戌狗", "亥猪"}
将{}更改成[]后,问题解决。
本文标题:iOS报错 Consecutive statements on
本文链接:https://www.haomeiwen.com/subject/xzeufttx.html
网友评论