sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

SetHtml() 大概20分钟后失效 #301

Open workyu opened 3 years ago

workyu commented 3 years ago

我有一个传感器显示项目 传感器数据3秒一次, 每3秒执行一次SetHtml()方法 开始一切正常 大概20分钟后,SetHtml()方法失效,没有有任何错误信息,但是UI界面不会改变

workyu commented 3 years ago

具体原因并不清楚,但是已经解决了 解决方法: 在html加入如下代码即可 self.timer(1000, function() { return true });

pravic commented 3 years ago

English, please?

Ptr147 commented 3 years ago

@workyu He Said: I have a sensor show project The sensor acquires data every 3 seconds I every 3 seconds use SetHtml() method Everything is normal at first. But After 20 minutes,SetHtml()method invalid, No Any Erorr or Warning Msg.The UI will not change. I don't know what's going on,But I solved it with the following code

zpfz commented 3 years ago

@workyu He Said: I have a sensor show project The sensor acquires data every 3 seconds I every 3 seconds use SetHtml() method Everything is normal at first. But After 20 minutes,SetHtml()method invalid, No Any Erorr or Warning Msg.The UI will not change. I don't know what's going on,But I solved it with the following code

  • Add Into html self.timer(1000, function() { return true });

    PS 加一下我QQ:1319926343 这个库是有问题吗?我试了好久都没跑起来

换 sciter.js 的 dll