汽车仪表盘上显示ECO是什么意思?
更新时间:2023-01-13 16:01
最满意答案
看起来
client.navigate()
还没有实现(截至2015年9月10日),甚至还没有在Chrome Canary中实现。 它仅在几个月前 ,即2015年6月指定 。这是功能状态页面和相关的Chromium票证 。 一旦实现了navigate()
您的代码可能会起作用。It looks like
client.navigate()
is not implemented yet (as of September 10, 2015), not even in Chrome Canary. It was specified only a few months ago, in June 2015. Here is the feature status page, and the relevant Chromium ticket. Your code will probably work oncenavigate()
is implemented.
相关问答
更多-
ServiceWorker Chrome推送通知 - 转发到新页面(ServiceWorker Chrome Push Notifications - Forward to new page)[2022-01-29]
看起来client.navigate()还没有实现(截至2015年9月10日),甚至还没有在Chrome Canary中实现。 它仅在几个月前 ,即2015年6月指定 。这是功能状态页面和相关的Chromium票证 。 一旦实现了navigate()您的代码可能会起作用。 It looks like client.navigate() is not implemented yet (as of September 10, 2015), not even in Chrome Canary. It was sp ... -
“ 支持推送消息的加密有效负载 ”错误跟踪获取通知中公开的有效负载的进度。 该错误是特定于Chrome的,但其他浏览器供应商可能会采用相同的方法。 服务工作者升级流程与存在表示服务工作者代码的特定JavaScript文件的想法密切相关,然后可以逐个字节地定期检查该文件,以查看是否有任何更新。 如果它是已注册的内存中JavaScript对象,则从文件中分离,升级流将无法按指定的方式工作。 我认为您不会看到您提议的更改添加到规范中。 The "Support encrypted payloads for pus ...
-
navigator.serviceWorker.controller在页面刷新之前为空(navigator.serviceWorker.controller is null until page refresh)[2022-08-19]
这是预期的行为。 要在不等待刷新/重新打开的情况下控制所有打开的页面,必须将这些命令添加到服务人员: self.addEventListener('install', function(event) { event.waitUntil(self.skipWaiting()); // Activate worker immediately }); self.addEventListener('activate', function(event) { event.waitUntil(self. ... -
Internet Explorer中未定义“navigator.serviceWorker”('navigator.serviceWorker' is undefined for Internet Explorer)[2022-04-12]
您不能在IE中使用服务人员。 看这里: https://caniuse.com/#search=serviceWorker 但正如你所看到的,你可以在Chrome,Firefox ......中使用它们。 You cannot use Service Workers with IE. Look here: https://caniuse.com/#search=serviceWorker But as you can see you can use them in Chrome, Firefox... as ... -
正如wanderview在这里所说: FWIW,您应该始终为每个频道使用单独的配置文件(发布/ beta / dev-edition / nightly)。 我们正在努力让它像开箱即用一样工作,但尚未准备好。 当我为多个Firefox版本使用一个配置文件时遇到此问题。 要解决此问题,请访问about:support并单击Refresh Firefox 。 如果它不起作用,您可以转到about:profiles ,单击Create new profile ,然后Launch profile in new br ...
-
按照这种方法... 将sw.js文件放在template文件夹中 配置视图作为静态文件 #urls url(r'^sw(.*.js)$', views.sw_js, name='sw_js'), #views from django.views.decorators.cache import never_cache from django.template.loader import get_template @never_cache def sw_js(request, js): templat ...
-
遵循规范 ,似乎正确的实现是从服务工作者中选择一个Client ,然后使用postMessage方法,例如: onmessage = function(event){ clients.matchAll().then(function(clients){ clients[0].postMesssage('yourmessage'); }); } Following the specs what it seems to be the right implementation is pickin ...
-
首先,由于代码中的拼写错误,您似乎正在收到错误。 请参阅底部的注意事项。 此外, skipWaiting()和Clients.claim()同时使用单个请求安装和激活新 SW。 但很自然地,你只会在重新加载后获得像css这样的静态资产。 因此,即使配备了skipWaiting()和Clients.claim() ,您Clients.claim()需要两次页面重新加载来查看更新的static内容,例如新的html或样式; 页面加载#1 发出了对sw.js请求,并且由于更改了SW内容 ,因此会触发install ...
-
解决了! 我不知道如何获取消息ID,但找到了如何识别您的订阅: self.addEventListener('push', function (event) { ... self.registration.pushManager .getSubscription() .then( function( subscription ) { var registrationId = subscription.endpoint.split('/'); ...
-
在首次调用事件处理程序时,需要同步完成对event.waitUntil()的初始调用。 然后,您可以将promise链传递给event.waitUntil() ,并在该promise链中执行任意数量的异步操作。 您当前的代码在调用event.waitUntil()之前调用异步的IndexedDB回调,这就是您看到该错误的原因。 在promise链中包含IndexedDB操作的最简单方法是使用包装库,如idb-keyval ,它采用基于回调的IndexedDB API并将其转换为基于promise的API。 ...