简体   繁体   English

刷新后Javascript停止工作

[英]Javascript stops working after refresh

First of all, here is the page: Phyre.no/ask 首先,这里是页面: Phyre.no/ask

When you ask a question, the site will redirect you to ../ask/answer.html If you refresh that page the answers disappear and will not show on the site again. 当您提出问题时,网站会将您重定向到../ask/answer.html。如果刷新该页面,答案将消失并且不会再次显示在网站上。

Probably caused by this: Click for screenshot 可能由以下原因引起: 单击以获取屏幕截图

Feel free to take a look at the source code. 随意看一下源代码。

That's it, as I pointed out in my comment, the commas are missing in refresh.js 就这样,正如我在评论中指出的那样,refresh.js中缺少逗号

I tried it on my desktop and it's working - CONFIRMED. 我在台式机上尝试过,并且可以正常工作-确认。 Just put in all the commas correctly. 只需正确输入所有逗号即可。

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."

];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM