Safest way to update game score from client to server database? Javascript

前端 未结 5 2366
生来不讨喜
生来不讨喜 2020-12-14 10:41

So I have this game that is completely run on the client. No server interaction what so ever apart from downloading the initial scripts to play the game. Anyway at the end o

5条回答
  •  -上瘾入骨i
    2020-12-14 11:07

    Can you use ajax to send the score (and any identifiers) to the server? Unless they have something like firebug open they won't see it happening.

    var url = '/savescores.asp?userID=fredsmith&score=1098';
    createRequest();
    request.open('GET', url, true);
    etc
    

提交回复
热议问题