动态变化的变量随机整数
这些数字本身并不相关。我有一个用于跟踪移动车辆的变量列表。 UTC 时间:、纬度:、经度:、速度:、航向:、转向:、里程表:(PPM)、GPS 状态:、STWS 状态:
就像我说的那样,数字不相关,数学也不相关。我只需要模拟每个变量的动态变化的整数。例如,速度:25。然后 25 变成 26,然后变成 28,然后变成 15,依此类推。我将实现此代码,然后设置每个变量的最小值和最大值。 我只需要向客户展示车辆跟踪系统监视器可以显示每个变量的变化值。
谢谢。
The numbers themselves aren't relevant. I have a list of variables that are used to track a moving vehicle.
UTC Time:, Latitude:, Longitude:, Speed:, Heading:, Steering:, Odometer:(PPM), GPS Status:, STWS Status:
Like i said the numbers aren't relevant, and neither is the math. I just need to simulate dynamically changing integers for each variable. For instance, Speed:25. then the 25 become a 26, then a 28, then a 15 and so on. I will implement this code, and then set the min and max for each variable.
I just need to show customers that the vehicle tracking system monitor can display changing values for each variable.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
$("#the_span_id").text(n);
并将其连接到 JavaScript 计时器事件。$("#the_span_id").text(n);
and hook it up to a JavaScript timer event.听起来您需要的是 jQuery 倒计时。看一下这个链接:
http://www.tripwiremagazine.com/2011/04/9-cool-jquery-countdown-scripts.html" tripwiremagazine.com/2011/04/9-cool-jquery-countdown-scripts.html
It sounds like what you need is a jQuery countdown. Take a look at this link:
http://www.tripwiremagazine.com/2011/04/9-cool-jquery-countdown-scripts.html
您可以按照以下方式做一些事情:
You could do something along the following lines: