刷新后Javascript停止工作

时间:2013-11-27 10:28:28

标签: javascript forms refresh

首先,这是页面:Phyre.no/ask

当您提出问题时,该网站会将您重定向到../ask/answer.html 如果您刷新该页面,答案将消失,并且不会再次显示在网站上。

可能由此引起: Click for screenshot

随意查看源代码。

1 个答案:

答案 0 :(得分:0)

就是这样,正如我在评论中指出的那样,在refresh.js中缺少逗号

我在桌面上试了一下它正在工作 - 确认。只需正确输入所有逗号。

var textarray = [

 "Yes.",
 "No.",
 "Maybe.",
 "Very likely.",
 "Unlikely.",
 "Within the next few days you  will get the answer.",
 "Think about it.",
 "There is no chance.",
 "There is a possibility",
 "Positive.",
 "Negative."

];