首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用使用lightstreamer的网站时间更新客户端时间

用使用lightstreamer的网站时间更新客户端时间
EN

Stack Overflow用户
提问于 2020-08-13 18:39:23
回答 1查看 50关注 0票数 0

我想用用Lightstreamer更新时间的网站来更新我的电脑的时间。在chrome devtools的调试选项卡中,我发现时间值在哪一行更新:

代码语言:javascript
复制
    define("lscAZ", ["LoggerManager", "IllegalArgumentException", "lscAe"], function (d, f, b) {
    function a(a, b, c, d, f) { this.Ay = b; this.zy = a; this.qu = d; this.ma = c; **this.Sd = f** } var c = d.getLoggerProxy(b.Ok); a.prototype = {
        Bm: function () { return this.zy }, lj: function () { return this.Ay }, getValue: function (a) { a = this.ei(a); return (a = this.Sd[a]) && a.QC ? a.value : a }, Cr: function (a) { a = this.ei(a); return !this.Sd.Ao[a] }, py: function () { return this.qu }, forEachChangedField: function (a) {
            for (var b = this.Sd.Mc, f = 0; f < b.length; f++) {
                var k = this.ma.getName(b[f]),
                h = this.Sd[b[f] + 1]; try { a(k, b[f], h) } catch (l) { c.logErrorExc(l, d.resolve(402)) }
            }
        }, Eq: function (a) { for (var b = 2; b < this.Sd.length; b++) { var f = b - 1, k = this.ma.getName(f), h = this.Sd[b]; try { a(k, f, h) } catch (l) { c.logErrorExc(l, d.resolve(403)) } } }, ei: function (a) { a = isNaN(a) ? this.ma.oe(a) : a; if (null == a) throw new f("the specified field does not exist"); if (0 >= a || a > this.ma.ym() + 1) throw new f("the specified field position is out of bounds"); return a + 1 }, cx: function () { return this.Sd.length - 2 }, Kw: function (a) { return this.ma.getName(a) }
    };
    a.prototype.getItemName = a.prototype.Bm; a.prototype.getItemPos = a.prototype.lj; a.prototype.getValue = a.prototype.getValue; a.prototype.isValueChanged = a.prototype.Cr; a.prototype.isSnapshot = a.prototype.py; a.prototype.forEachChangedField = a.prototype.forEachChangedField; a.prototype.forEachField = a.prototype.Eq; return a
});

在此代码中,值Sdf属于网站的时间。问题是我不知道在哪里可以找到f的计算过程,也不知道如何在控制台中调用上面的代码函数来捕获这个值(我甚至认不出函数的名称!)。另一方面,使用此函数的输出作为名为updateInfo的函数更新的时钟构造并在网站中使用它。这些都是自动的,我需要用较少的时间间隔手动完成。

f的计算对我更有用,因为这个值被格式化为字符串,并且不包含毫秒(格式为hh:mm:ss)。

Lightstreamer的配置如下

代码语言:javascript
复制
 /*
 * LIGHTSTREAMER - www.lightstreamer.com
 * Lightstreamer Web Client
 * Version 7.2.0 build 1777
 * Copyright (c) Lightstreamer Srl. All Rights Reserved.
 * Contains: LightstreamerClient, Subscription, ConnectionSharing, SimpleLoggerProvider
 *   ConsoleAppender, Promise
 * Globals
 */
EN

回答 1

Stack Overflow用户

发布于 2020-08-17 18:18:32

请注意,从8.0.0版本开始,Lightstreamer Client SDK Library是开源的,可以在https://github.com/Lightstreamer/Lightstreamer-lib-client-javascript上找到

这可能会对你的努力有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63393324

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档