Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unity回傳統計資訊程式說明: 填寫回傳資訊網址(theUrl)。

Similar presentations


Presentation on theme: "Unity回傳統計資訊程式說明: 填寫回傳資訊網址(theUrl)。"— Presentation transcript:

1 Unity回傳統計資訊程式說明: 填寫回傳資訊網址(theUrl)。
程式範例如右邊範例程式所示,本程式以按鈕為測試範例,實際回傳時機應設定在首頁載入時(body的onload事件)呼叫httpGet函式,以避免重複回傳資訊。 <!DOCTYPE html> <html lang="en" xmlns=" <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> function httpGet() { var theUrl = " var xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", theUrl, false); // false for synchronous request xmlHttp.send(null); } </script> </head> <body> <input type="button" value="example" onclick="javascript:httpGet();" /> </body> </html>


Download ppt "Unity回傳統計資訊程式說明: 填寫回傳資訊網址(theUrl)。"

Similar presentations


Ads by Google