Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个有两个用户(观察者和司机)的应用程序。观察者将跟踪地图中的驾驶员位置,因此我需要将驾驶员的经纬度连续发送到服务器,那么我如何连续调用服务器以便驾驶员位置在观察者地图视图上得到更新。
也许还有其他选择,但您始终可以使用 NSTimer 来触发触发器。
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html
我有以下 HTML 代码
<div id="form_target"></div> <form action="?r=index/login" target="#form_target"></form>
我想从 actionLogin 返回文本并将其显示在 f