简体   繁体   English

Chrome Javascript控制台停止工作

[英]Chrome Javascript Console Stopped Working

I am working on a meteor.js app and I am using Session.set and Session.get to pass data along. 我正在使用meteor.js应用,正在使用Session.setSession.get传递数据。 Now last night my app was working just fine but this morning none of it seems to be working. 现在昨晚我的应用程序运行良好,但是今天早上似乎都没有运行。 And whenever i try to get a session from the chrome console it just prints out whatever I typed with out giving any messages or any data. 每当我尝试从chrome控制台获取会话时,它只会打印出我键入的内容,而不会给出任何消息或任何数据。

Ex: Session.get("min-distance-query"); 例如: Session.get("min-distance-query");

just prints out: Session.get("min-distance-query"); 只是打印出来: Session.get("min-distance-query");

I also have functions to get my lon/lat coords Geolocation.latLng(); 我还具有获取lon / lat coords Geolocation.latLng(); which was working as well before I went to bed and this morning it is also not working. 我上床睡觉之前也很好,今天早上也没工作。

And again it does the same thing in the console when I try to run the function in there. 当我尝试在控制台中运行该功能时,它再次在控制台中执行相同的操作。 It just prints out Geolocation.latLng(); 它只是打印出Geolocation.latLng(); where it used to print out an object with a lng/lat value in it. 用于打印其中带有lng / lat值的对象的位置。

Has any one experienced this before? 有谁之前经历过这个吗?

Thanks to Niloct I have been able to get the console to function as expected. 多亏了Niloct,我才能够使控制台正常运行。

As he mentioned in the comments I just had to reinstall chrome and it began working again. 正如他在评论中提到的那样,我只需要重新安装chrome即可重新开始工作。

NOTE: the Gelocation.lngLat(); 注意:Gelocation.lngLat(); function is apparently not working because of an unrelated issue regarding chrome. 由于与chrome无关的问题,该功能显然无法正常工作。 A stack overflow post about this issue can be found here: Chrome navigator.geolocation.getCurrentPosition() error 403 可以在以下位置找到有关此问题的堆栈溢出帖子: Chrome navigator.geolocation.getCurrentPosition()错误403

Hopefully it will get resolved soon. 希望它将很快得到解决。

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

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